引雷标记extender
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
using Cielonos.MainGame.Characters;
|
||||
using Cielonos.MainGame.Effects.Feedback;
|
||||
using SLSUtilities.Feedback;
|
||||
using SLSUtilities.FunctionalAnimation;
|
||||
|
||||
namespace Cielonos.MainGame.Inventory.Collections
|
||||
{
|
||||
@@ -62,11 +65,25 @@ namespace Cielonos.MainGame.Inventory.Collections
|
||||
return played;
|
||||
}
|
||||
|
||||
private bool PlayLightning(CharacterBase target)
|
||||
private bool PlayLightning(CharacterBase target, bool playStartupFeedback = false)
|
||||
{
|
||||
bool played = PlayTargetedAnimation("GenerateLightning", target);
|
||||
if (played)
|
||||
{
|
||||
if (_hasLightningConcentrator && playStartupFeedback)
|
||||
{
|
||||
float duration = fullBodyFuncAnimSm.collection["GenerateLightning"]
|
||||
.Interval(IntervalType.Startup).Duration * 2f;
|
||||
player.feedbackSc.PlayFeedback("DisruptionStartup", runtimeFeedback =>
|
||||
{
|
||||
FeedbackClip timeScaleModifierClip = runtimeFeedback.Clip<TimeScaleModifierAction>("Time");
|
||||
if (timeScaleModifierClip != null)
|
||||
{
|
||||
timeScaleModifierClip.duration = duration;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
functionSm["Lightning"].Execute();
|
||||
}
|
||||
return played;
|
||||
|
||||
Reference in New Issue
Block a user