Fix an epic failure in a recent commit. Digestion damage working properly again
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 18:15:04 +0000 (20:15 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 18:15:04 +0000 (20:15 +0200)
data/balanceVT.cfg
data/qcsrc/server/t_items.qc
data/qcsrc/server/vore.qc
docs/Release notes.txt

index 31140e9..55d1f07 100644 (file)
@@ -218,7 +218,7 @@ set g_balance_vore_regurgitate_predator_punchangle_item 6 "your view gets tilted
 set g_balance_vore_regurgitate_prey_punchvector 50 "your view gets lowered by this amount when getting regurgitated"\r
 set g_balance_vore_digestion_damage 4 "amount of damage applied to victims during digestion"\r
 set g_balance_vore_digestion_damage_death 2 "amplify digestion damage by this amount when the prey is dead"\r
-set g_balance_vore_digestion_damage_item 2 "amount of damage applied to items during digestion"\r
+set g_balance_vore_digestion_damage_item 1 "amount of damage applied to items during digestion"\r
 set g_balance_vore_digestion_limit -100 "prey can be digested down to this amount of health"\r
 set g_balance_vore_digestion_limit_regurgitate 1 "the predator automatically regurgitates prey that has reached the digestion limit"\r
 set g_balance_vore_digestion_limit_blockrespawn 1 "dead prey cannot respawn if it's still being digested"\r
index 559fa57..4ec0ed2 100644 (file)
@@ -256,8 +256,9 @@ 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 = ceil(cvar("g_balance_vore_digestion_damage_item") / damage_offset);\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
 \r
                        self.health -= damage;\r
                        if(self.predator.health + damage <= self.max_health)\r
index 2a5e738..300dfc7 100644 (file)
@@ -459,11 +459,12 @@ void Vore_Digest()
 \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 *= self.predator.stomach_load / self.predator.stomach_maxload;\r
                if(cvar("g_healthsize") && cvar("g_balance_vore_digestion_scalediff")) // apply player scale to digestion damage\r
                        damage_offset *= pow(self.scale / self.predator.scale, cvar("g_balance_vore_digestion_scalediff"));\r
+               damage_offset = ceil(damage_offset);\r
 \r
-               damage = ceil(cvar("g_balance_vore_digestion_damage") / damage_offset);\r
+               damage = cvar("g_balance_vore_digestion_damage") / damage_offset;\r
                if(cvar("g_balance_vore_digestion_damage_death") && self.deadflag != DEAD_NO) // amplify digestion damage for dead prey\r
                        damage *= cvar("g_balance_vore_digestion_damage_death");\r
 \r
index 617d5f0..5e839ca 100644 (file)
@@ -266,8 +266,6 @@ Bug fixes:
 \r
 - Prevent bots switching to weapons they don't own in order to reload them, causing weird animations.\r
 \r
-- Correct a bug that caused distributed digestion to work in reverse, and amplify instead of reducing.\r
-\r
 - Fix health rot not pausing when gaining health from digestion.\r
 \r
 Features:\r