Skip to content
Open
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
21 changes: 21 additions & 0 deletions MigrationUtility/Scripts/UpdatePhobosTags.sed
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
# reference: https://www.gnu.org/software/sed/manual/sed.html#sed-scripts
# regexp playground (syntax may differ a bit): https://regexr.com

# from post-0.4 devbuilds
# =============================================
s/^Trajectory\..*\.ApplyRangeModifiers=/Trajectory\.ApplyRangeModifiers=/I
s/^Trajectory\..*\.DetonationDistance=/Trajectory\.DetonationDistance=/I
s/^Trajectory\..*\.TargetSnapDistance=/Trajectory\.TargetSnapDistance=/I
s/^Trajectory\..*\.LeadTimeCalculate=/Trajectory\.LeadTimeCalculate=/I
s/^Trajectory\..*\.OffsetCoord=/Trajectory\.OffsetCoord=/I
s/^Trajectory\..*\.RotateCoord=/Trajectory\.RotateCoord=/I
s/^Trajectory\..*\.MirrorCoord=/Trajectory\.MirrorCoord=/I
s/^Trajectory\..*\.AxisOfRotation=/Trajectory\.AxisOfRotation=/I
s/^Trajectory\.Straight\.PassDetonate(.*)=/PassDetonate\1=/I
s/^Trajectory\.Straight\.Proximity(.*)=/Proximity\1=/I
s/^Trajectory\.Straight\.Through(.*)=/Through\1=/I
s/^Trajectory\.Straight\.EdgeAttenuation=/DamageEdgeAttenuation=/I
s/^Trajectory\.Straight\.CountAttenuation=/DamageCountAttenuation=/I
s/^Trajectory\.Bombard\.EarlyDetonation=/Trajectory\.EarlyDetonation=/I
s/^Trajectory\.Parabola\.BounceOnWater=(y.*|t.*|1)/Trajectory\.Parabola\.BounceOnTarget=all/I
s/^Trajectory\..*\.DetonationHeight=/Trajectory\.DetonationHeight=/I
s/^Trajectory\..*\.SubjectToGround=.*/& ; FIXME No longer used. SubjectToGround has directly taken effect/I
s/^Trajectory\..*\.UseDisperseBurst=.*/& ; FIXME No longer used. Will be automatically activated by itself/I

# from post-0.3 devbuilds
# =============================================
s/^AnimList\.ShowOnZeroDamage=/CreateAnimsOnZeroDamage=/I
Expand Down