\r
self.scale = self.health / self.inithealth; // scale matches the item's digestion progress\r
self.dmg = self.initdmg * self.scale;\r
- if(self.health < 1)\r
+ if(self.health <= 0)\r
{\r
// this item is done\r
Item_Consumable_Remove(self, FALSE);\r
self.stomach_maxload = cvar("g_balance_vore_load_pred_capacity");\r
if(cvar("g_healthsize"))\r
self.stomach_maxload *= self.scale;\r
- self.stomach_maxload = floor(self.stomach_maxload);\r
+ self.stomach_maxload = ceil(self.stomach_maxload);\r
\r
self.stomach_load = 0; // start from zero\r
FOR_EACH_PLAYER(e)\r
prey_mass = cvar("g_balance_vore_load_prey_mass");\r
if(cvar("g_healthsize"))\r
prey_mass *= e.scale;\r
- self.stomach_load += floor(prey_mass);\r
+ self.stomach_load += ceil(prey_mass);\r
}\r
}\r
for(e = world; (e = find(e, classname, "consumable")); )\r
{\r
if(e.predator == self)\r
- self.stomach_load += floor(e.dmg);\r
+ self.stomach_load += ceil(e.dmg);\r
}\r
\r
// apply weight\r