Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## version v1.0alpha3 -- unreleased.

* [#28](https://github.com/lambda-dom/class_revisions/pull/28): Fix targetting in spells: Animal Fang, Animal Summoning I-IV.
* [#30](https://github.com/lambda-dom/class_revisions/pull/30): Improve implementation of Woodland Stride. TODO.
* [#31](https://github.com/lambda-dom/class_revisions/pull/31): Improve implementation of Woodland Stride.

## version v1.0alpha2.

Expand Down
18 changes: 17 additions & 1 deletion class_revisions/components/ranger/patches/ranger_spells.tpa
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//Libraries.
INCLUDE "%WEIDU_LIBRARY_DIR%/blocks.tpa"
INCLUDE "%WEIDU_LIBRARY_DIR%/components.tpa"
INCLUDE "%WEIDU_LIBRARY_DIR%/installers.tpa"
INCLUDE "%WEIDU_LIBRARY_DIR%/patchers.tpa"
Expand Down Expand Up @@ -119,8 +120,23 @@ END

//Woodland Stride.
DEFINE_PATCH_FUNCTION ranger_woodland_stride BEGIN
PATCH_FOR_EACH block IN
"entangle"
BEGIN
LPF patch_block INT_VAR
match_opcode = 0 //AC Bonus.
STR_VAR
block = "%block%"
END
END

//Hack-y implementation.
LPF DELETE_EFFECT INT_VAR
verbose = 1
match_opcode = 0 //AC bonus. Opcode present merely to anchor patch_block.
END

PATCH_FOR_EACH spell IN
"CLERIC_ENTANGLE"
"CLERIC_SPIKE_GROWTH"
BEGIN
LPF get_spell_res STR_VAR spell = "%spell%" RET resource END
Expand Down
Binary file not shown.