* Work on survival mode.

This commit is contained in:
iProgramInCpp
2023-08-13 23:01:40 +03:00
parent e9f4ae6533
commit 1e7bedaa72
5 changed files with 25 additions and 2 deletions

View File

@@ -364,7 +364,7 @@ void Mob::causeFallDamage(float level)
int x = int(ceilf(level - 3));
if (x > 0)
{
hurt(nullptr, 3);
hurt(nullptr, 3*42);
//@HUH: useless call to getTile? or could this be a return value of some sort
//Entity::causeFallDamage returns nothing though, so....
@@ -710,7 +710,9 @@ int Mob::getMaxSpawnClusterSize()
void Mob::actuallyHurt(int damage)
{
#ifdef TEST_SURVIVAL_MODE
m_health -= damage;
#endif
}
bool Mob::removeWhenFarAway()