Merge pull request #412 from JMRedford/patch-1

Change Plague events to take half of population.
This commit is contained in:
Blake Grotewold
2015-06-14 22:44:15 -04:00
+1 -1
View File
@@ -135,7 +135,7 @@ Events.Outside = [
_('the nights are rent with screams.')
],
onLoad: function() {
var numKilled = Math.floor(Math.random() * 20) + 1;
var numKilled = Math.floor(Math.random() * Math.floor($SM.get('game.population', true)/2)) + 1;
Outside.killVillagers(numKilled);
},
buttons: {