Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanfer committed Sep 12, 2023
1 parent dc180fd commit 4e36deb
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/game_api/level_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
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>();
arrow->poison_arrow(true);
}},
Expand Down

0 comments on commit 4e36deb

Please sign in to comment.