Skip to content

Commit

Permalink
Merge pull request #588 from LoboEire/master
Browse files Browse the repository at this point in the history
Heretic/Blasphemer: fix tomed pickups
  • Loading branch information
dashodanger authored Oct 17, 2023
2 parents e6fb05e + 317bfd5 commit 8e34f62
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 8 deletions.
20 changes: 14 additions & 6 deletions edge_base/blasphemer/scripts/rscript.rts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
// These scripts replace hardcoded events for Heretic.
// For documentation, see https://edge-classic.github.io/
//

#CLEAR_ALL



START_MAP ALL

//Switch to Tomed STAFF
Expand Down Expand Up @@ -82,6 +84,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON CROSSBOW CROSSBOW_TOMED //switch to the new one
REPLACE_THING CROSSBOW CROSSBOW_TOMED

DISABLE_TAGGED SWITCH_TOMED_CROSSBOW
END_RADIUS_TRIGGER
Expand All @@ -97,6 +100,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON CROSSBOW_TOMED CROSSBOW //switch to the new one
REPLACE_THING CROSSBOW_TOMED CROSSBOW

DISABLE_TAGGED SWITCH_CROSSBOW
END_RADIUS_TRIGGER
Expand All @@ -113,6 +117,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON GAUNTLETS GAUNTLETS_TOMED //switch to the new one
REPLACE_THING GAUNTLETS GAUNTLETS_TOMED

DISABLE_TAGGED SWITCH_TOMED_GAUNTLETS
END_RADIUS_TRIGGER
Expand All @@ -128,6 +133,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON GAUNTLETS_TOMED GAUNTLETS //switch to the new one
REPLACE_THING GAUNTLETS_TOMED GAUNTLETS

DISABLE_TAGGED SWITCH_GAUNTLETS
END_RADIUS_TRIGGER
Expand All @@ -143,6 +149,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON PHOENIX_ROD PHOENIX_ROD_TOMED
REPLACE_THING PHOENIX_ROD PHOENIX_ROD_TOMED

DISABLE_TAGGED SWITCH_TOMED_PHOENIX_ROD
END_RADIUS_TRIGGER
Expand All @@ -158,6 +165,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON PHOENIX_ROD_TOMED PHOENIX_ROD
REPLACE_THING PHOENIX_ROD_TOMED PHOENIX_ROD

DISABLE_TAGGED SWITCH_PHOENIX_ROD
END_RADIUS_TRIGGER
Expand All @@ -173,6 +181,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON HELLSTAFF HELLSTAFF_TOMED
REPLACE_THING HELLSTAFF HELLSTAFF_TOMED

DISABLE_TAGGED SWITCH_TOMED_HELLSTAFF
END_RADIUS_TRIGGER
Expand All @@ -188,6 +197,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON HELLSTAFF_TOMED HELLSTAFF
REPLACE_THING HELLSTAFF_TOMED HELLSTAFF

DISABLE_TAGGED SWITCH_HELLSTAFF
END_RADIUS_TRIGGER
Expand All @@ -203,6 +213,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON DRAGON_CLAW DRAGON_CLAW_TOMED //switch to the new one
REPLACE_THING DRAGON_CLAW DRAGON_CLAW_TOMED

DISABLE_TAGGED SWITCH_TOMED_DRAGON_CLAW
END_RADIUS_TRIGGER
Expand All @@ -218,6 +229,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON DRAGON_CLAW_TOMED DRAGON_CLAW //switch to the new one
REPLACE_THING DRAGON_CLAW_TOMED DRAGON_CLAW

DISABLE_TAGGED SWITCH_DRAGON_CLAW
END_RADIUS_TRIGGER
Expand All @@ -234,6 +246,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON MACE MACE_TOMED
REPLACE_THING MACE MACE_TOMED

DISABLE_TAGGED SWITCH_TOMED_MACE
END_RADIUS_TRIGGER
Expand All @@ -249,6 +262,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON MACE_TOMED MACE
REPLACE_THING MACE_TOMED MACE

DISABLE_TAGGED SWITCH_MACE
END_RADIUS_TRIGGER
Expand Down Expand Up @@ -518,12 +532,6 @@ START_MAP ALL
TAGGED_DISABLED
TAGGED_REPEATABLE 0 1

GIVE_BENEFIT AMMO1(3)
GIVE_BENEFIT AMMO2(3)
GIVE_BENEFIT AMMO3(3)
GIVE_BENEFIT AMMO4(3)
GIVE_BENEFIT AMMO5(3)
GIVE_BENEFIT AMMO6(3)
THING_EVENT OUR_HERO SHOOT_EGG

WAIT 2T
Expand Down
27 changes: 26 additions & 1 deletion edge_base/blasphemer/scripts/things.ddf
Original file line number Diff line number Diff line change
Expand Up @@ -3107,6 +3107,11 @@ RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WBOW:A:-1:NORMAL:NOTHING;

[CROSSBOW_TOMED]
TEMPLATE=CROSSBOW;
PICKUP_BENEFIT=CROSSBOW_TOMED,SHELLS(8);



[GAUNTLETS:2005]
RADIUS=20;
Expand All @@ -3119,6 +3124,11 @@ RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WGNT:A:-1:NORMAL:NOTHING;

[GAUNTLETS_TOMED]
TEMPLATE=GAUNTLETS;
PICKUP_BENEFIT=GAUNTLETS_TOMED;



[DRAGON_CLAW:53]
RADIUS=20;
Expand All @@ -3131,6 +3141,10 @@ RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WBLS:A:-1:NORMAL:NOTHING;

[DRAGON_CLAW_TOMED]
TEMPLATE=DRAGON_CLAW;
PICKUP_BENEFIT=DRAGON_CLAW_TOMED,CELLS(20);


[HELLSTAFF:2004]
RADIUS=20;
Expand All @@ -3142,6 +3156,10 @@ SPECIAL=SPECIAL,NOGRAVITY;
RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WSKL:A:-1:NORMAL:NOTHING;

[HELLSTAFF_TOMED]
TEMPLATE=HELLSTAFF;
PICKUP_BENEFIT=HELLSTAFF_TOMED,AMMO6(50);



Expand All @@ -3156,7 +3174,9 @@ RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WMCE:A:-1:NORMAL:NOTHING;


[MACE_TOMED]
TEMPLATE=MACE;
PICKUP_BENEFIT=MACE_TOMED,AMMO5(75);


[PHOENIX_ROD:2003]
Expand All @@ -3169,6 +3189,11 @@ SPECIAL=SPECIAL,NOGRAVITY,DROPPED;
RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WPHX:A:-1:NORMAL:NOTHING;

[PHOENIX_ROD_TOMED]
TEMPLATE=PHOENIX_ROD;
PICKUP_BENEFIT=PHOENIX_ROD_TOMED,ROCKETS(4);


// Mage's Best Friend :->

Expand Down
12 changes: 12 additions & 0 deletions edge_base/heretic/scripts/rscript.rts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON CROSSBOW CROSSBOW_TOMED //switch to the new one
REPLACE_THING CROSSBOW CROSSBOW_TOMED

DISABLE_TAGGED SWITCH_TOMED_CROSSBOW
END_RADIUS_TRIGGER
Expand All @@ -99,6 +100,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON CROSSBOW_TOMED CROSSBOW //switch to the new one
REPLACE_THING CROSSBOW_TOMED CROSSBOW

DISABLE_TAGGED SWITCH_CROSSBOW
END_RADIUS_TRIGGER
Expand All @@ -115,6 +117,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON GAUNTLETS GAUNTLETS_TOMED //switch to the new one
REPLACE_THING GAUNTLETS GAUNTLETS_TOMED

DISABLE_TAGGED SWITCH_TOMED_GAUNTLETS
END_RADIUS_TRIGGER
Expand All @@ -130,6 +133,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON GAUNTLETS_TOMED GAUNTLETS //switch to the new one
REPLACE_THING GAUNTLETS_TOMED GAUNTLETS

DISABLE_TAGGED SWITCH_GAUNTLETS
END_RADIUS_TRIGGER
Expand All @@ -145,6 +149,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON PHOENIX_ROD PHOENIX_ROD_TOMED
REPLACE_THING PHOENIX_ROD PHOENIX_ROD_TOMED

DISABLE_TAGGED SWITCH_TOMED_PHOENIX_ROD
END_RADIUS_TRIGGER
Expand All @@ -160,6 +165,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON PHOENIX_ROD_TOMED PHOENIX_ROD
REPLACE_THING PHOENIX_ROD_TOMED PHOENIX_ROD

DISABLE_TAGGED SWITCH_PHOENIX_ROD
END_RADIUS_TRIGGER
Expand All @@ -175,6 +181,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON HELLSTAFF HELLSTAFF_TOMED
REPLACE_THING HELLSTAFF HELLSTAFF_TOMED

DISABLE_TAGGED SWITCH_TOMED_HELLSTAFF
END_RADIUS_TRIGGER
Expand All @@ -190,6 +197,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON HELLSTAFF_TOMED HELLSTAFF
REPLACE_THING HELLSTAFF_TOMED HELLSTAFF

DISABLE_TAGGED SWITCH_HELLSTAFF
END_RADIUS_TRIGGER
Expand All @@ -205,6 +213,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON DRAGON_CLAW DRAGON_CLAW_TOMED //switch to the new one
REPLACE_THING DRAGON_CLAW DRAGON_CLAW_TOMED

DISABLE_TAGGED SWITCH_TOMED_DRAGON_CLAW
END_RADIUS_TRIGGER
Expand All @@ -220,6 +229,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON DRAGON_CLAW_TOMED DRAGON_CLAW //switch to the new one
REPLACE_THING DRAGON_CLAW_TOMED DRAGON_CLAW

DISABLE_TAGGED SWITCH_DRAGON_CLAW
END_RADIUS_TRIGGER
Expand All @@ -236,6 +246,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON MACE MACE_TOMED
REPLACE_THING MACE MACE_TOMED

DISABLE_TAGGED SWITCH_TOMED_MACE
END_RADIUS_TRIGGER
Expand All @@ -251,6 +262,7 @@ START_MAP ALL

WAIT 2T
REPLACE_WEAPON MACE_TOMED MACE
REPLACE_THING MACE_TOMED MACE

DISABLE_TAGGED SWITCH_MACE
END_RADIUS_TRIGGER
Expand Down
27 changes: 26 additions & 1 deletion edge_base/heretic/scripts/things.ddf
Original file line number Diff line number Diff line change
Expand Up @@ -3107,6 +3107,11 @@ RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WBOW:A:-1:NORMAL:NOTHING;

[CROSSBOW_TOMED]
TEMPLATE=CROSSBOW;
PICKUP_BENEFIT=CROSSBOW_TOMED,SHELLS(8);



[GAUNTLETS:2005]
RADIUS=20;
Expand All @@ -3119,6 +3124,11 @@ RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WGNT:A:-1:NORMAL:NOTHING;

[GAUNTLETS_TOMED]
TEMPLATE=GAUNTLETS;
PICKUP_BENEFIT=GAUNTLETS_TOMED;



[DRAGON_CLAW:53]
RADIUS=20;
Expand All @@ -3131,6 +3141,10 @@ RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WBLS:A:-1:NORMAL:NOTHING;

[DRAGON_CLAW_TOMED]
TEMPLATE=DRAGON_CLAW;
PICKUP_BENEFIT=DRAGON_CLAW_TOMED,CELLS(20);


[HELLSTAFF:2004]
RADIUS=20;
Expand All @@ -3142,6 +3156,10 @@ SPECIAL=SPECIAL,NOGRAVITY;
RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WSKL:A:-1:NORMAL:NOTHING;

[HELLSTAFF_TOMED]
TEMPLATE=HELLSTAFF;
PICKUP_BENEFIT=HELLSTAFF_TOMED,AMMO6(50);



Expand All @@ -3156,7 +3174,9 @@ RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WMCE:A:-1:NORMAL:NOTHING;


[MACE_TOMED]
TEMPLATE=MACE;
PICKUP_BENEFIT=MACE_TOMED,AMMO5(75);


[PHOENIX_ROD:2003]
Expand All @@ -3169,6 +3189,11 @@ SPECIAL=SPECIAL,NOGRAVITY,DROPPED;
RESPAWN_EFFECT=ITEM_RESPAWN;

STATES(IDLE)=WPHX:A:-1:NORMAL:NOTHING;

[PHOENIX_ROD_TOMED]
TEMPLATE=PHOENIX_ROD;
PICKUP_BENEFIT=PHOENIX_ROD_TOMED,ROCKETS(4);


// Mage's Best Friend :->

Expand Down

0 comments on commit 8e34f62

Please sign in to comment.