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

6
game.h
View File

@ -2290,6 +2290,7 @@ void SFG_monsterPerformAI(SFG_MonsterRecord *monster)
state = SFG_MONSTER_STATE_ATTACKING; state = SFG_MONSTER_STATE_ATTACKING;
if (SFG_game.state == SFG_GAME_STATE_PLAYING)
SFG_playerChangeHealthWithMiltiplier( SFG_playerChangeHealthWithMiltiplier(
-1 * SFG_getDamageValue(SFG_WEAPON_FIRE_TYPE_MELEE)); -1 * SFG_getDamageValue(SFG_WEAPON_FIRE_TYPE_MELEE));
@ -2520,7 +2521,10 @@ void SFG_updateLevel()
SFG_player.camera.height)) SFG_player.camera.height))
{ {
eliminate = 1; 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 /* Check collision with the map (we don't use SFG_floorCollisionHeightAt