Skip to content

Commit

Permalink
Moving variant-specific machines to the end so as not to affect exist…
Browse files Browse the repository at this point in the history
…ing numbering
  • Loading branch information
flend committed Aug 26, 2024
1 parent fe832a8 commit c8ed5cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
6 changes: 4 additions & 2 deletions src/brogue/Rogue.h
Original file line number Diff line number Diff line change
Expand Up @@ -2665,7 +2665,6 @@ enum machineTypes {
MT_REWARD_CONSUMABLES,
MT_REWARD_PEDESTALS_PERMANENT,
MT_REWARD_PEDESTALS_CONSUMABLE,
MT_REWARD_HEAVY_OR_RUNIC_WEAPON,
MT_REWARD_COMMUTATION_ALTARS,
MT_REWARD_RESURRECTION_ALTAR,
MT_REWARD_ADOPTED_ITEM,
Expand Down Expand Up @@ -2739,7 +2738,10 @@ enum machineTypes {
MT_PARALYSIS_TRAP_HIDDEN_AREA,
MT_TRICK_STATUE_AREA,
MT_WORM_AREA,
MT_SENTINEL_AREA
MT_SENTINEL_AREA,

// Variant-specific machines
MT_REWARD_HEAVY_OR_RUNIC_WEAPON
};

typedef struct autoGenerator {
Expand Down
17 changes: 10 additions & 7 deletions src/variants/GlobalsBulletBrogue.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,6 @@ const blueprint blueprintCatalog_BulletBrogue[] = {
{0, PEDESTAL, DUNGEON, {1,1}, 1, (SCROLL), SCROLL_ENCHANTING, 0, 2, 0, (ITEM_KIND_AUTO_ID), (MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_TREAT_AS_BLOCKING)},
{0, PEDESTAL, DUNGEON, {1,1}, 1, (POTION), POTION_LIFE,0, 2, 0, (ITEM_KIND_AUTO_ID), (MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_TREAT_AS_BLOCKING)},
{0, 0, 0, {1,1}, 1, 0, 0, 0, 2, 0, 0, (MF_BUILD_AT_ORIGIN | MF_PERMIT_BLOCKING | MF_BUILD_VESTIBULE)}}},
{"Guaranteed good runic or heavy weapon",
{1, DEEPEST_LEVEL-1}, {10, 30}, 5, 5, 0, (BP_ROOM | BP_PURGE_INTERIOR | BP_SURROUND_WITH_WALLS | BP_OPEN_INTERIOR | BP_IMPREGNABLE | BP_REWARD), {
{0, CARPET, DUNGEON, {0,0}, 0, 0, -1, 0, 0, 0, 0, (MF_EVERYWHERE)},
{0, STATUE_INERT,DUNGEON, {2,3}, 0, 0, -1, 0, 2, 0, 0, (MF_TREAT_AS_BLOCKING | MF_BUILD_IN_WALLS | MF_IMPREGNABLE)},
{0, PEDESTAL, DUNGEON, {1,1}, 1, (WEAPON), -1, 0, 2, 0, ITEM_IDENTIFIED,(MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_REQUIRE_GOOD_RUNIC | MF_NO_THROWING_WEAPONS | MF_TREAT_AS_BLOCKING)},
{0, PEDESTAL, DUNGEON, {1,1}, 1, (WEAPON), -1, 0, 2, 0, ITEM_IDENTIFIED,(MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_REQUIRE_HEAVY_WEAPON | MF_NO_THROWING_WEAPONS | MF_TREAT_AS_BLOCKING)},
{0, 0, 0, {1,1}, 1, 0, 0, 0, 2, 0, 0, (MF_BUILD_AT_ORIGIN | MF_PERMIT_BLOCKING | MF_BUILD_VESTIBULE)}}},
{"Commutation altars",
{2, DEEPEST_LEVEL-1},{10, 30}, 50, 4, 0, (BP_ROOM | BP_PURGE_INTERIOR | BP_SURROUND_WITH_WALLS | BP_OPEN_INTERIOR | BP_IMPREGNABLE | BP_REWARD), {
{0, CARPET, DUNGEON, {0,0}, 0, 0, -1, 0, 0, 0, 0, (MF_EVERYWHERE)},
Expand Down Expand Up @@ -626,6 +619,16 @@ const blueprint blueprintCatalog_BulletBrogue[] = {
{1,DEEPEST_LEVEL-1}, {40, 40}, 0, 2, 0, (BP_NO_INTERIOR_FLAG), {
{0, STATUE_INERT,DUNGEON, {3, 3}, 3, 0, -1, MK_SENTINEL, 2, 0, 0, (MF_NOT_IN_HALLWAY | MF_TREAT_AS_BLOCKING | MF_IN_VIEW_OF_ORIGIN)},
{DF_ASH, 0, 0, {2, 3}, 0, 0, -1, 0, 0, 0, 0, 0}}},

// -- VARIANT-SPECIFIC MACHINES --
{"Guaranteed good runic or heavy weapon",
{1, DEEPEST_LEVEL-1}, {10, 30}, 5, 5, 0, (BP_ROOM | BP_PURGE_INTERIOR | BP_SURROUND_WITH_WALLS | BP_OPEN_INTERIOR | BP_IMPREGNABLE | BP_REWARD), {
{0, CARPET, DUNGEON, {0,0}, 0, 0, -1, 0, 0, 0, 0, (MF_EVERYWHERE)},
{0, STATUE_INERT,DUNGEON, {2,3}, 0, 0, -1, 0, 2, 0, 0, (MF_TREAT_AS_BLOCKING | MF_BUILD_IN_WALLS | MF_IMPREGNABLE)},
{0, PEDESTAL, DUNGEON, {1,1}, 1, (WEAPON), -1, 0, 2, 0, ITEM_IDENTIFIED,(MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_REQUIRE_GOOD_RUNIC | MF_NO_THROWING_WEAPONS | MF_TREAT_AS_BLOCKING)},
{0, PEDESTAL, DUNGEON, {1,1}, 1, (WEAPON), -1, 0, 2, 0, ITEM_IDENTIFIED,(MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_REQUIRE_HEAVY_WEAPON | MF_NO_THROWING_WEAPONS | MF_TREAT_AS_BLOCKING)},
{0, 0, 0, {1,1}, 1, 0, 0, 0, 2, 0, 0, (MF_BUILD_AT_ORIGIN | MF_PERMIT_BLOCKING | MF_BUILD_VESTIBULE)}}},

};

const hordeType hordeCatalog_BulletBrogue[] = {
Expand Down

0 comments on commit c8ed5cb

Please sign in to comment.