Skip to content

Commit

Permalink
vampire_flying the same thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Auto committed Oct 16, 2023
1 parent 38dc6f7 commit 741a732
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/game_api/level_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,16 @@ std::array g_community_tile_codes{
CommunityTileCode{"monkey", "ENT_TYPE_MONS_MONKEY"},
CommunityTileCode{"firebug", "ENT_TYPE_MONS_FIREBUG"},
CommunityTileCode{"vampire", "ENT_TYPE_MONS_VAMPIRE", g_spawn_not_snapped_to_floor},
CommunityTileCode{"vampire_flying", "ENT_TYPE_MONS_VAMPIRE"},
CommunityTileCode{
"vampire_flying",
"ENT_TYPE_MONS_VAMPIRE",
[](const CommunityTileCode& self, float x, float y, Layer* layer)
{
if (Movable* vampire = (Movable*)layer->spawn_entity(self.entity_id, x, y, false, 0.0f, 0.0f, true))
{
vampire->move_state = 9;
}
}},
CommunityTileCode{
"vlad_flying",
"ENT_TYPE_MONS_VLAD",
Expand Down

0 comments on commit 741a732

Please sign in to comment.