Update map

This commit is contained in:
Miloslav Číž 2020-10-04 19:14:03 +02:00
parent 1854aab3cf
commit c87449dbe5
2 changed files with 7 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

10
game.h
View File

@ -2290,8 +2290,9 @@ void SFG_monsterPerformAI(SFG_MonsterRecord *monster)
state = SFG_MONSTER_STATE_ATTACKING;
SFG_playerChangeHealthWithMiltiplier(
-1 * SFG_getDamageValue(SFG_WEAPON_FIRE_TYPE_MELEE));
if (SFG_game.state == SFG_GAME_STATE_PLAYING)
SFG_playerChangeHealthWithMiltiplier(
-1 * SFG_getDamageValue(SFG_WEAPON_FIRE_TYPE_MELEE));
SFG_playGameSound(3,255);
}
@ -2520,7 +2521,10 @@ void SFG_updateLevel()
SFG_player.camera.height))
{
eliminate = 1;
SFG_playerChangeHealthWithMiltiplier(-1 * SFG_getDamageValue(attackType));
if (SFG_game.state == SFG_GAME_STATE_PLAYING) // don't hurt at start
SFG_playerChangeHealthWithMiltiplier(
-1 * SFG_getDamageValue(attackType));
}
/* Check collision with the map (we don't use SFG_floorCollisionHeightAt