mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-22 07:18:49 -05:00
Update map
This commit is contained in:
parent
1854aab3cf
commit
c87449dbe5
Binary file not shown.
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.7 KiB |
6
game.h
6
game.h
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user