Initial medicine implementation. Needs more events.

This commit is contained in:
Zarkonnen
2013-07-08 19:16:16 +02:00
parent 54cea31db9
commit 4641b0b145
5 changed files with 787 additions and 51 deletions
+6 -1
View File
@@ -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++;