- edited description
Unicorn Rift message value doesn't take Ziggurath bonus into account
Issue #116
resolved
Suggested diff:
diff --git a/js/calendar.js b/js/calendar.js
index 2300622..ab4fba4 100644
--- a/js/calendar.js
+++ b/js/calendar.js
@@ -623,9 +623,9 @@ dojo.declare("com.nuclearunicorn.game.Calendar", null, {
var riftChance = this.game.getEffect("riftChance"); //5 OPTK
if (this.game.rand(10000) < riftChance * unicornChanceRatio){
- this.game.msg("A rift to the Unicorn Dimension has opened in your village, +500 unicorns!", "notice", "unicornRift");
-
- this.game.resPool.addResEvent("unicorns", 500 * (1 + this.game.getEffect("unicornsRatioReligion") * 0.1)); //10% of ziggurat buildings bonus
+ var unicornBonus = 500 * (1 + this.game.getEffect("unicornsRatioReligion") * 0.1);
+ this.game.msg("A rift to the Unicorn Dimension has opened in your village, +" + this.game.getDisplayValueExt(unicornBonus) + " unicorns!", "notice", "unicornRift");
+ this.game.resPool.addResEvent("unicorns", unicornBonus); //10% of ziggurat buildings bonus
}
//----------------------------------------------
var aliChance = this.game.getEffect("alicornChance"); //0.2 OPTK
Comments (4)
-
reporter -
reporter - marked as enhancement
-
- changed status to resolved
-
Pull requests are accepted FYI.
Thanks.
- Log in to comment