Skip to content

Commit f2f875e

Browse files
Tag Rename Migration
See Phobos-developers/Phobos#1984
1 parent 71d6e73 commit f2f875e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

MigrationUtility/Scripts/UpdatePhobosTags.sed

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
11
# reference: https://www.gnu.org/software/sed/manual/sed.html#sed-scripts
22
# regexp playground (syntax may differ a bit): https://regexr.com
33

4+
# from pre-0.5
5+
# =============================================
6+
s/^Crit\.AffectAbovePercent=/Crit\.AffectsAbovePercent=/I
7+
48
# from 0.4
59
# =============================================
610
s/^SpySat=(y.*|t.*|1)/Reveal=-1/I
711
s/^BigGap=(y.*|t.*|1)/CreateGap=-1/I
812
s/^UseCenterCoordsIfAttached=(y.*|t.*|1)/AttachedAnimPosition=center/I
913
s/^WarpAway=/Chronoshift\.WarpOut=/I
1014
/^\[General\]/,/^\[/ s/Chronoshift\.WarpOut=/WarpAway=/I
15+
s/^AffectTargets=/AffectsTarget=/I
16+
s/^ReflectDamage\.AffectsHouses=/ReflectDamage\.AffectsHouse=/I
17+
s/^RevengeWeapon\.AffectsHouses=/RevengeWeapon\.AffectsHouse=/I
18+
s/^AutoFire=/AutoTargetOwnPosition=/I
19+
s/^AutoFire\.TargetSelf=/AutoTargetOwnPosition\.Self=/I
20+
s/^DetonateOnAllMapObjects\.AffectHouses=/DetonateOnAllMapObjects\.AffectsHouse=/I
21+
s/^DetonateOnAllMapObjects\.AffectTargets=/DetonateOnAllMapObjects\.AffectsTarget=/I
22+
s/^Crit\.AffectBelowPercent=/Crit\.AffectsBelowPercent=/I
23+
s/^Crit\.Affects=/Crit\.AffectsTarget=/I
24+
s/^Crit\.AffectsHouses=/Crit\.AffectsHouse=/I
25+
s/^KillWeapon\.AffectsHouses=/KillWeapon\.AffectsHouse=/I
26+
s/^KillWeapon\.OnFirer\.AffectsHouses=/KillWeapon\.OnFirer\.AffectsHouse=/I
27+
s/^Convert([0-9]*)\.AffectedHouses=/Convert\1.AffectsHouse=/I
28+
s/^LimboKill\.Affected=/LimboKill\.AffectsHouse=/I
1129

1230
# from post-0.3 devbuilds
1331
# =============================================

0 commit comments

Comments
 (0)