Skip to content

Commit

Permalink
change Stop power to use MyExecuteActionPowerNoCost
Browse files Browse the repository at this point in the history
  • Loading branch information
ThyWoof committed Aug 11, 2024
1 parent e302c9d commit 18d093a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@ public void Stop(RulesetCharacter character)
}

var locationCharacter = GameLocationCharacter.GetFromActor(character);
var usablePower = PowerProvider.Get(StopPower, character);

if (locationCharacter == null)
{
return;
}

#if false
var implementationManager =
ServiceRepository.GetService<IRulesetImplementationService>() as RulesetImplementationManager;

var usablePower = PowerProvider.Get(StopPower, character);

var actionParams = new CharacterActionParams(locationCharacter, ActionDefinitions.Id.PowerNoCost)
{
ActionModifiers = { new ActionModifier() },
Expand All @@ -48,5 +45,8 @@ public void Stop(RulesetCharacter character)

ServiceRepository.GetService<ICommandService>()?
.ExecuteAction(actionParams, _ => { }, false);
#endif

locationCharacter.MyExecuteActionPowerNoCost(usablePower, [locationCharacter]);
}
}

0 comments on commit 18d093a

Please sign in to comment.