-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/common/Edelstein.Common.Gameplay.Game/Combat/Skills/Normal/PirateViper2SkillHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Edelstein.Common.Gameplay.Constants; | ||
using Edelstein.Protocol.Gameplay.Game.Combat; | ||
using Edelstein.Protocol.Gameplay.Game.Objects.User; | ||
using Edelstein.Protocol.Gameplay.Models.Characters.Stats; | ||
|
||
namespace Edelstein.Common.Gameplay.Game.Combat.Skills.Normal; | ||
|
||
public class PirateViper2SkillHandler : Pirate1SkillHandler | ||
{ | ||
public override int ID => Job.Infighter; | ||
|
||
public override Task HandleSkillUse(ISkillContext context, IFieldUser user) | ||
{ | ||
switch (context.Skill?.ID) | ||
{ | ||
case Skill.InfighterKnuckleBooster: | ||
context.AddTemporaryStat(TemporaryStatType.Booster, context.SkillLevel!.X); | ||
break; | ||
case Skill.InfighterOakCask: | ||
context.AddTemporaryStat(TemporaryStatType.Morph, context.SkillLevel!.Morph); | ||
break; | ||
} | ||
|
||
return base.HandleSkillUse(context, user); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/common/Edelstein.Common.Gameplay.Game/Combat/Skills/Normal/PirateViper3SkillHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Edelstein.Common.Gameplay.Constants; | ||
using Edelstein.Protocol.Gameplay.Game.Combat; | ||
using Edelstein.Protocol.Gameplay.Game.Objects.User; | ||
using Edelstein.Protocol.Gameplay.Models.Characters.Stats; | ||
|
||
namespace Edelstein.Common.Gameplay.Game.Combat.Skills.Normal; | ||
|
||
public class PirateViper3SkillHandler : PirateViper2SkillHandler | ||
{ | ||
public override int ID => Job.Buccaneer; | ||
|
||
public override Task HandleSkillUse(ISkillContext context, IFieldUser user) | ||
{ | ||
switch (context.Skill?.ID) | ||
{ | ||
case Skill.BuccaneerTransform: | ||
context.AddTemporaryStat(TemporaryStatType.Morph, context.SkillLevel!.Morph); | ||
break; | ||
} | ||
|
||
return base.HandleSkillUse(context, user); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/common/Edelstein.Common.Gameplay.Game/Combat/Skills/Normal/PirateViper4SkillHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Edelstein.Common.Gameplay.Constants; | ||
using Edelstein.Protocol.Gameplay.Game.Combat; | ||
using Edelstein.Protocol.Gameplay.Game.Objects.User; | ||
using Edelstein.Protocol.Gameplay.Models.Characters.Stats; | ||
|
||
namespace Edelstein.Common.Gameplay.Game.Combat.Skills.Normal; | ||
|
||
public class PirateViper4SkillHandler : PirateViper3SkillHandler | ||
{ | ||
public override int ID => Job.Viper; | ||
|
||
public override Task HandleSkillUse(ISkillContext context, IFieldUser user) | ||
{ | ||
switch (context.Skill?.ID) | ||
{ | ||
case Skill.ViperSuperTransform: | ||
context.AddTemporaryStat(TemporaryStatType.Morph, context.SkillLevel!.Morph); | ||
break; | ||
case Skill.ViperWindBooster: | ||
context.SetTwoStatePartyBooster(context.SkillLevel!.X); | ||
break; | ||
} | ||
|
||
return base.HandleSkillUse(context, user); | ||
} | ||
} |