Logo Platform
logo amplifiers simplified

en passant does not give movement point

Copied to clipboard!
5 years ago
Apr 19, 2020, 5:11:01 PM

enPassant.sav

https://www.twitch.tv/videos/596678249

used en passant after being blockaded, defeated blocking fleet, stayed with 0 movement points, I rarely use it, but in this time I actually wanted to see it at work and it did not.

0Send private message
0Send private message0Send private message
a year ago
Oct 29, 2023, 3:00:51 PM

I am not sure, but possibly the card not working after being blockaded, is intended. There are two values to calculate your movement left, "Movement Spent" and "Maximum Movement", En Passant sustracts each ship maximum movement to their movement spent, so in normal conditions it refills the movement of the fleet, however, when you are blockaded, the "Movement Spent" value is huge, like 3 billion (I guess the max value or something like that), so sustracting the maximum movement still leaves you at 0 movement.


However I think the card is not valuable if you cannot use is after a blockade, you don't get any battle boost, and the use outside blockades can be very very niche.


It can ve solved without messing with the core values in a simple way. In "\Simulation\Battles\BattleEffectDefinitions.xml" I changed the effect "Ship_AddBattleMovementGain" to avoid the huge number from blockade:


  <BattleEffect_SetPropertyValue Name="Ship_AddBattleMovementGain" PropertyName="SpentMovement" Operation="Set" InterpreterFormula="Min(Property(Target, @ClassShip, SpentMovement), Property(Target, @ClassShip, MaximumMovement)) - Property(Target, @ClassShip, BattleMovementGain)"/>


0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message