Parcourir la source

Lalim actually appears now

tags/v0.2.8
Fen Dweller il y a 7 ans
Parent
révision
4019e9d2de
1 fichiers modifiés avec 10 ajouts et 1 suppressions
  1. +10
    -1
      objects.js

+ 10
- 1
objects.js Voir le fichier

@@ -78,8 +78,17 @@ function Bed() {
this.actions.push({
"name": "Sleep",
"action": function() {
if (player.health >= player.maxHealth) {
if (Math.random() < 0.25) {
update(["You crawl into bed and fall asleep...",newline]);
advanceTime(86400 - time);
startCombat(new Lalim());
return;
}
}

update(["You take a nap."]);
advanceTime(2700);
advanceTime(3600*2);
updateDisplay();
}
});


Chargement…
Annuler
Enregistrer