Skip to content
18 changes: 18 additions & 0 deletions MigrationUtility/Scripts/UpdatePhobosTags.sed
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
# reference: https://www.gnu.org/software/sed/manual/sed.html#sed-scripts
# regexp playground (syntax may differ a bit): https://regexr.com

# from pre-0.5
# =============================================
s/^Crit\.AffectAbovePercent=/Crit\.AffectsAbovePercent=/I

# from 0.4
# =============================================
s/^WarpAway=/Chronoshift\.WarpOut=/I
/^\[General\]/,/^\[/ s/Chronoshift\.WarpOut=/WarpAway=/I
s/^AffectTargets=/AffectsTarget=/I
s/^ReflectDamage\.AffectsHouses=/ReflectDamage\.AffectsHouse=/I
s/^RevengeWeapon\.AffectsHouses=/RevengeWeapon\.AffectsHouse=/I
s/^AutoFire=/AutoTargetOwnPosition=/I
s/^AutoFire\.TargetSelf=/AutoTargetOwnPosition\.Self=/I
s/^DetonateOnAllMapObjects\.AffectHouses=/DetonateOnAllMapObjects\.AffectsHouse=/I
s/^DetonateOnAllMapObjects\.AffectTargets=/DetonateOnAllMapObjects\.AffectsTarget=/I
s/^Crit\.AffectBelowPercent=/Crit\.AffectsBelowPercent=/I
s/^Crit\.Affects=/Crit\.AffectsTarget=/I
s/^Crit\.AffectsHouses=/Crit\.AffectsHouse=/I
s/^KillWeapon\.AffectsHouses=/KillWeapon\.AffectsHouse=/I
s/^KillWeapon\.OnFirer\.AffectsHouses=/KillWeapon\.OnFirer\.AffectsHouse=/I
s/^Convert([0-9]*)\.AffectedHouses=/Convert\1.AffectsHouse=/I
s/^LimboKill\.Affected=/LimboKill\.AffectsHouse=/I

# from post-0.3 devbuilds
# =============================================
Expand Down