Skip to content

Commit

Permalink
Autoexplore now avoids items on altars outside of vaults (#493)
Browse files Browse the repository at this point in the history
The "outsourced item" reward room generates items that, when picked up, can
trigger the same sorts of traps that picking up keys can. Previously,
autoexplore would pick these items up, triggering these traps without warning.
  • Loading branch information
nstoddard authored Sep 7, 2022
1 parent b4503f6 commit d92dcbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changes/autoexplore-altar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Autoexplore now avoids items on candle-lit altars outside of vaults
8 changes: 4 additions & 4 deletions src/brogue/Globals.c
Original file line number Diff line number Diff line change
Expand Up @@ -1179,10 +1179,10 @@ const blueprint blueprintCatalog[NUMBER_BLUEPRINTS] = {
{0, 0, 0, {1,1}, 1, 0, 0, 0, 2, 0, 0, (MF_BUILD_AT_ORIGIN | MF_PERMIT_BLOCKING | MF_BUILD_VESTIBULE)}}},
// Outsourced item -- same item possibilities as in the good permanent item reward room (plus charms), but directly adopted by 1-2 key machines.
{{5, 17}, {0, 0}, 20, 4, 0, (BP_REWARD | BP_NO_INTERIOR_FLAG), {
{0, 0, 0, {1,1}, 1, (WEAPON), -1, 0, 0, 0, ITEM_IDENTIFIED,(MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_REQUIRE_GOOD_RUNIC | MF_NO_THROWING_WEAPONS | MF_OUTSOURCE_ITEM_TO_MACHINE | MF_BUILD_ANYWHERE_ON_LEVEL)},
{0, 0, 0, {1,1}, 1, (ARMOR), -1, 0, 0, 0, ITEM_IDENTIFIED,(MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_REQUIRE_GOOD_RUNIC | MF_OUTSOURCE_ITEM_TO_MACHINE | MF_BUILD_ANYWHERE_ON_LEVEL)},
{0, 0, 0, {2,2}, 2, (STAFF), -1, 0, 0, 0, ITEM_KIND_AUTO_ID, (MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_OUTSOURCE_ITEM_TO_MACHINE | MF_BUILD_ANYWHERE_ON_LEVEL)},
{0, 0, 0, {1,2}, 1, (CHARM), -1, 0, 0, 0, ITEM_KIND_AUTO_ID, (MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_OUTSOURCE_ITEM_TO_MACHINE | MF_BUILD_ANYWHERE_ON_LEVEL)}}},
{0, 0, 0, {1,1}, 1, (WEAPON), -1, 0, 0, 0, (ITEM_IDENTIFIED | ITEM_PLAYER_AVOIDS),(MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_REQUIRE_GOOD_RUNIC | MF_NO_THROWING_WEAPONS | MF_OUTSOURCE_ITEM_TO_MACHINE | MF_BUILD_ANYWHERE_ON_LEVEL)},
{0, 0, 0, {1,1}, 1, (ARMOR), -1, 0, 0, 0, (ITEM_IDENTIFIED | ITEM_PLAYER_AVOIDS),(MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_REQUIRE_GOOD_RUNIC | MF_OUTSOURCE_ITEM_TO_MACHINE | MF_BUILD_ANYWHERE_ON_LEVEL)},
{0, 0, 0, {2,2}, 2, (STAFF), -1, 0, 0, 0, (ITEM_KIND_AUTO_ID | ITEM_PLAYER_AVOIDS), (MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_OUTSOURCE_ITEM_TO_MACHINE | MF_BUILD_ANYWHERE_ON_LEVEL)},
{0, 0, 0, {1,2}, 1, (CHARM), -1, 0, 0, 0, (ITEM_KIND_AUTO_ID | ITEM_PLAYER_AVOIDS), (MF_GENERATE_ITEM | MF_ALTERNATIVE | MF_OUTSOURCE_ITEM_TO_MACHINE | MF_BUILD_ANYWHERE_ON_LEVEL)}}},
// Dungeon -- two allies chained up for the taking
{{5, AMULET_LEVEL}, {30, 80}, 12, 5, 0, (BP_ROOM | BP_REWARD), {
{0, VOMIT, SURFACE, {2,2}, 2, 0, -1, 0, 2, (HORDE_MACHINE_CAPTIVE | HORDE_LEADER_CAPTIVE), 0, (MF_GENERATE_HORDE | MF_TREAT_AS_BLOCKING)},
Expand Down

0 comments on commit d92dcbf

Please sign in to comment.