mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
function for fire hut event and more
Effect of hut fire is associated with new Outside method .destroyHuts().
This commit is contained in:
committed by
Blake Grotewold
parent
09c070adfa
commit
cb717b41d0
@@ -79,10 +79,7 @@ Events.Outside = [
|
||||
notification: _('a fire has started'),
|
||||
blink: true,
|
||||
onLoad: function() {
|
||||
var population = $SM.get('game.population', true);
|
||||
var huts = $SM.get('game.buildings["hut"]', true);
|
||||
$SM.set('game.buildings["hut"]', (huts - 1));
|
||||
Outside.killVillagers(4);
|
||||
Outside.destroyHuts(1);
|
||||
},
|
||||
buttons: {
|
||||
'mourn': {
|
||||
|
||||
Reference in New Issue
Block a user