Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The entire Polymorph mechanics has been recoded from scratch.
It now works as follows:
SPINHUM.SPL => universal "Shapeshift: Natural Form" ability (for voluntary forms)
op172
,op171
as casting feature effects)op326, resource="SPINHUME"
op326, resource="SPINHUMR"
SPINHUME.SPL (for use with "Fire / Earth Elemental Transformation" only)
op177, resource="SPINHUME"
op17, dicenumber=3, dicesize=10
(+3d10 HP)SPINHUME.EFF (for use with "Fire / Earth Elemental Transformation" only)
op318, resource="SPINHUME", parent_resource="*PINHUME"
SPINHUMR.SPL (actual Natural Form ability)
op177, resource="SPINHUMW"
op177, resource="SPINHUMS"
SPINHUMW.EFF
op135, resource="", parent_resource="*PINHUMW"
SPINHUMS.EFF
op321, resource="SPIN823", parent_resource="*PINHUMS"
SPWI489.SPL => "Shapeshift: Natural Form" (forced by "Polymorph Self")
op177, resource="SPWI489R"
op146, parameter2=1, resource="SPINHUMR"
SPWI489R.EFF
op318, resource="SPWI489", parent_resource="SPWI416R"
"SPINHUMR.SPL"
if the caster is not in one of the forms granted by "Polymorph Self"SPIN150.SPL => "Shapeshift: Natural Form" (forced by "Shapechange")
op177, resource="SPIN150R"
op146, parameter2=1, resource="SPINHUMR"
SPIN150R.EFF
op318, resource="SPIN150", parent_resource="SPWI916R"
"SPINHUMR.SPL"
if the caster is not in one of the forms granted by "Shapechange"Self Polymorphs (with an overall duration)
op172
,op171
as casting feature effects)op146, parameter2=1, timing=1, resource="SPINHUMR"
op111, timing=4, duration=0 resource="<poly_weapon>"
0
seconds delay is meant to prevent equipped effect loss (see the IESDP for further details)Self Polymorphs (without an overall duration)
op146, parameter2=1, timing=1, resource="SPINHUMR"
op111, timing=4, duration=0, resource="<poly_weapon>"
0
seconds delay is meant to prevent equipped effect loss (see the IESDP for further details)op146, parameter2=1, timing=1, resource=SPINHUMR
Hostile / Limited Polymorphs
op146, parameter2=1, timing=1, resource="SPINHUMR"
op111, timing=4, duration=0, resource="<poly_weapon>"
– if permanent duration (such as Bolt of Polymorphing)0
seconds delay is meant to prevent equipped effect loss (see the IESDP for further details)op146, parameter2=1, timing=4, duration=0, resource="<subspell>"
– if limited duration (such as Sphere of Chaos)0
seconds delay is meant to prevent equipped effect loss (see the IESDP for further details)op111, timing=0, duration=<intended_duration>, resource="<poly_weapon>"
Slayer Change
SPL
files:SPIN717
,SPIN783
,SPIN823
,SPIN852
op146, parameter2=1, timing=1, resource="SPINHUMR"
(all but the voluntary one, i.e.:SPIN823
)op146, parameter2=1, timing=1, resource="SPINHUMS"
(only the voluntary one, i.e.:SPIN823
)SPIN823
) castsSPINHUMS
, which castsSPINHUMR
while blocking its secondEFF
(op321
), as it would remove all the effects ofSPIN823
that are about to be applied.SPIN823
has its own leadingop321
to prevent stacking itself.op146, parameter2=1, timing=4, duration=0, resource="<subspell>"
0
seconds delay is meant to prevent equipped effect loss (see the IESDP for further details)op111, timing=0, duration=<intended_duration>, resource="<slayer_weapon>"
(all)op206, timing=0, duration=180, resource="SPIN822"
(only the voluntary one)SPIN823
normally givesSPIN822
back after a180
seconds delay. This way insteadSPIN822
is blocked for180
seconds rather than removed and given back later, as it seems like that process got interrupted on occasion (people complaining about permanently losing the ability).op247
(Attack nearest creature – only the hostile one)1
,2
,4
,8
, ... , up to32768
(since at least in principle your character can have32767
HP)<poly_weapon>
op335, resource="SPINHUM"
(only voluntary forms)op335, resource="SPIN160"
("Shapeshift: Fire Salamander" only)op335, resource="SPIN974"
("Shapechange: Mind Flayer" only)op318, resource="SPWI416R"
(only forms granted by "Polymorph Self")op318, resource="SPWI916R"
(only forms granted by "Shapechange")op318, resource="*PINHUME"
("Fire / Earth Elemental Transformation" only)Non-polymorph spells/items
op326, parameter2=(STAT POLYMORPHED = 1), resource="SPINHUMW"
(right beforeop111
)op135,p2=0
automatically disables arcane / divine spellcasting).SPINHUMW
, which castsSPINHUMR
while blocking its firstEFF
(op135
), but not the rest.op135 EFF
, because otherwiseop135
would remove the Magical Weapon that is being created by the spell.