Prevent Moire edgecase

This commit is contained in:
Emik 2026-02-16 17:01:28 +01:00
parent c7ff653fc8
commit 742c3b1aee
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 2 additions and 2 deletions

View file

@ -17,5 +17,5 @@
"conflicts": [
"Jen"
],
"version": "1.5.25"
"version": "1.5.26"
}

View file

@ -171,7 +171,7 @@ SMODS.Edition({
in_pool = allow_moire,
apply_to_float = false,
get_weight = function(self)
return G.GAME.edition_rate * self.weight
return G.GAME.edition_rate * self.weight * (allow_moire() and 1 or 0)
end,
loc_vars = function(self, _, _)
return {vars = {self.config.e_chips, self.config.e_mult}}