function for fire hut event and more

Effect of hut fire is associated with new Outside method .destroyHuts().
This commit is contained in:
Andrea Rendine
2015-05-11 21:05:08 +02:00
committed by Blake Grotewold
parent 09c070adfa
commit cb717b41d0
2 changed files with 33 additions and 5 deletions
+1 -4
View File
@@ -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': {