mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
Initial medicine implementation. Needs more events.
This commit is contained in:
+6
-1
@@ -31,7 +31,8 @@ var World = {
|
||||
FIGHT_CHANCE: 0.20,
|
||||
BASE_HEALTH: 10,
|
||||
BASE_HIT_CHANCE: 0.8,
|
||||
MEAT_HEAL: 10,
|
||||
MEAT_HEAL: 8,
|
||||
MEDS_HEAL: 20,
|
||||
FIGHT_DELAY: 3, // At least three moves between fights
|
||||
NORTH: [ 0, -1],
|
||||
SOUTH: [ 0, 1],
|
||||
@@ -447,6 +448,10 @@ var World = {
|
||||
return World.MEAT_HEAL * (Engine.hasPerk('gastronome') ? 2 : 1);
|
||||
},
|
||||
|
||||
medsHeal: function() {
|
||||
return World.MEDS_HEAL;
|
||||
},
|
||||
|
||||
checkFight: function() {
|
||||
World.fightMove = typeof World.fightMove == 'number' ? World.fightMove : 0;
|
||||
World.fightMove++;
|
||||
|
||||
Reference in New Issue
Block a user