diff --git a/src/game_api/level_api.cpp b/src/game_api/level_api.cpp index c274bdcfe..226e3e854 100644 --- a/src/game_api/level_api.cpp +++ b/src/game_api/level_api.cpp @@ -470,19 +470,28 @@ std::array g_community_tile_codes{ CommunityTileCode{"punishball_attach_bottom", "ENT_TYPE_ITEM_PUNISHBALL", g_spawn_punishball_attach<0, -1>}, CommunityTileCode{"critter_slime", "ENT_TYPE_MONS_CRITTERSLIME"}, CommunityTileCode{"skull", "ENT_TYPE_ITEM_SKULL"}, - CommunityTileCode{"venom", "ENT_TYPE_ITEM_ACIDSPIT", - [](const CommunityTileCode& self, float x, float y, Layer* layer) { - layer->spawn_entity(self.entity_id, x, y-1, false, 0, 0, false); + CommunityTileCode{ + "venom", + "ENT_TYPE_ITEM_ACIDSPIT", + [](const CommunityTileCode& self, float x, float y, Layer* layer) + { + layer->spawn_entity(self.entity_id, x, y - 1, false, 0, 0, false); }}, CommunityTileCode{"arrow_wooden", "ENT_TYPE_ITEM_WOODEN_ARROW"}, CommunityTileCode{"arrow_metal", "ENT_TYPE_ITEM_METAL_ARROW"}, - CommunityTileCode{"arrow_wooden_poison", "ENT_TYPE_ITEM_WOODEN_ARROW", - [](const CommunityTileCode& self, float x, float y, Layer* layer) { + CommunityTileCode{ + "arrow_wooden_poison", + "ENT_TYPE_ITEM_WOODEN_ARROW", + [](const CommunityTileCode& self, float x, float y, Layer* layer) + { Arrow* arrow = layer->spawn_entity_snap_to_floor(self.entity_id, x, y)->as(); arrow->poison_arrow(true); }}, - CommunityTileCode{"arrow_metal_poison", "ENT_TYPE_ITEM_METAL_ARROW", - [](const CommunityTileCode& self, float x, float y, Layer* layer) { + CommunityTileCode{ + "arrow_metal_poison", + "ENT_TYPE_ITEM_METAL_ARROW", + [](const CommunityTileCode& self, float x, float y, Layer* layer) + { Arrow* arrow = layer->spawn_entity_snap_to_floor(self.entity_id, x, y)->as(); arrow->poison_arrow(true); }},