From: Joann Mõndresku Date: Sun, 19 May 2024 11:32:00 +0000 (+0300) Subject: Make contracts scale again X-Git-Url: https://git.based.quest/%7B%7B%20.Site.Params.Donate%20%7D%7D?a=commitdiff_plain;h=9c964c56646d99c92c9662e56ed4288a03fa663f;p=reEgg.git Make contracts scale again --- diff --git a/contracts.py b/contracts.py index 2cbf1b9..7cef4e0 100644 --- a/contracts.py +++ b/contracts.py @@ -48,6 +48,9 @@ def __convert_contract_to_proto(obj): scale_factor = contract.max_coop_size * 0.35 if scale_factor > 1.0: scaler = 1.0 / scale_factor + for goalset in contract.goal_sets: + for goal in goalset.goals: + goal.target_amount *= scale_factor return contract def load_contracts():