]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/t_items.qc
Fix an issue with distributed digestion working in reverse
[voretournament/voretournament.git] / data / qcsrc / server / t_items.qc
index d351beeb85350d81d83bac27e4e74694791085b2..092b287d4db21a26b2dc97c474d535f470cef06f 100644 (file)
@@ -256,9 +256,8 @@ void Item_Consumable_Think()
 \r
                        damage_offset = 1;\r
                        if(cvar("g_balance_vore_digestion_distribute")) // apply distributed digestion damage\r
-                               damage_offset *= self.predator.stomach_load / self.predator.stomach_maxload;\r
-                       damage_offset = ceil(damage_offset);\r
-                       damage = cvar("g_balance_vore_digestion_damage_item") / damage_offset;\r
+                               damage_offset /= self.predator.stomach_load / self.predator.stomach_maxload;\r
+                       damage = ceil(cvar("g_balance_vore_digestion_damage_item") / damage_offset);\r
 \r
                        self.health -= damage;\r
                        self.predator.health += damage;\r