Fix bug with timer bar displacing wrinkler detection area (Issue #213) and use game detection instead of copying code plus a minor code formatting change
This commit is contained in:
@@ -49,7 +49,7 @@ CM.Sim.BuildingSell = function(basePrice, start, free, amount, emuAura) {
|
||||
price = Game.modifyBuildingPrice(null, price);
|
||||
price = Math.ceil(price);
|
||||
var giveBack = 0.25;
|
||||
if (Game.hasAura('Earth Shatterer') || emuAura) giveBack=0.5;
|
||||
if (Game.hasAura('Earth Shatterer') || emuAura) giveBack = 0.5;
|
||||
price = Math.floor(price * giveBack);
|
||||
if (start > 0) {
|
||||
moni += price;
|
||||
|
||||
Reference in New Issue
Block a user