diff --git a/scripts/Structs/Feed.gd b/scripts/Structs/Feed.gd index 0dcb86d..e969fe8 100644 --- a/scripts/Structs/Feed.gd +++ b/scripts/Structs/Feed.gd @@ -72,7 +72,8 @@ func apply(entity: EntityBase): selected.emit(allHave) return allHave func countOf(index: int) -> int: - return ceil(costCounts[index] * multipiler()) + var base = costCounts[index] + return ceil(base * multipiler()) if base > 0 else floor(base / multipiler()) func multipiler() -> float: if is_instance_valid(UIState.player): return 1 - UIState.player.fields.get(FieldStore.Entity.PRICE_REDUCTION)