Vanilla-Expanded / VanillaExpandedFramework

Vanilla Expanded Framework for RimWorld
Other
69 stars 34 forks source link

Update AbilityPawnFlyer to 1.5 #82

Closed SokyranTheDragon closed 5 months ago

SokyranTheDragon commented 5 months ago

The PawnFlyer received some substantial changes in 1.5, specifically - PawnJumper (previously DLC only feature) was (basically) merged with PawnFlyer, no longer locking any of its features behind DLC, along with a multitude of other changes/improvements. Because of this, some of the changes in this PR will break existing mods and require them to update their implementations. Because the 1.5 update is not yet officially release, I felt that it's the perfect moment to introduce changes such as these. All the changes I've introduced, as well as extra details and explanations are below.

 

Traverse to access effecters was removed:

 

Position calculations were removed:

 

Property for accessing destCell field:

 

Pawn respawn changes:

 

Forced direction removed:

 

Save/reload bug fixed:

SokyranTheDragon commented 5 months ago

Not implemented, but something to consider - vanilla flyer iterates over all Ability comps and calls ICompAbilityEffectOnJumpCompleted.OnJumpCompleted (if interface is implemented). However, since VFE abilities don't use comps it would need to be used in some other capacity. Perhaps do the same, but with Ability.abilityModExtensions or AbilityDef.modExtensions?