-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2261 from planetarium/feature/stun
Introduce `Stun` : `ActionBuff`
- Loading branch information
Showing
11 changed files
with
285 additions
and
11 deletions.
There are no files selected for viewing
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
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,27 @@ | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
|
||
namespace Nekoyume.Model.BattleStatus.Arena | ||
{ | ||
[Serializable] | ||
public class ArenaTick : ArenaSkill | ||
{ | ||
public ArenaTick(ArenaCharacter character) : this( | ||
character, | ||
ArraySegment<ArenaSkillInfo>.Empty, | ||
ArraySegment<ArenaSkillInfo>.Empty) | ||
{ | ||
} | ||
|
||
public ArenaTick(ArenaCharacter character, IEnumerable<ArenaSkillInfo> skillInfos, IEnumerable<ArenaSkillInfo> buffInfos) | ||
: base(character, skillInfos, buffInfos) | ||
{ | ||
} | ||
|
||
public override IEnumerator CoExecute(IArena arena) | ||
{ | ||
yield return arena.CoTickDamage(Character, SkillInfos); | ||
} | ||
} | ||
} |
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,28 @@ | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
|
||
namespace Nekoyume.Model.BattleStatus | ||
{ | ||
[Serializable] | ||
public class Tick : Skill | ||
{ | ||
public Tick(CharacterBase character) : this( | ||
0, | ||
character, | ||
ArraySegment<SkillInfo>.Empty, | ||
ArraySegment<SkillInfo>.Empty) | ||
{ | ||
} | ||
|
||
public Tick(int skillId, CharacterBase character, IEnumerable<SkillInfo> skillInfos, IEnumerable<SkillInfo> buffInfos) | ||
: base(skillId, character, skillInfos, buffInfos) | ||
{ | ||
} | ||
|
||
public override IEnumerator CoExecute(IStage stage) | ||
{ | ||
yield return stage.CoTickDamage(Character, SkillId, SkillInfos); | ||
} | ||
} | ||
} |
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
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,40 @@ | ||
using System; | ||
using Nekoyume.Model.BattleStatus.Arena; | ||
using Nekoyume.Model.Skill; | ||
using Nekoyume.TableData; | ||
|
||
namespace Nekoyume.Model.Buff | ||
{ | ||
[Serializable] | ||
public class Stun : ActionBuff | ||
{ | ||
public Stun(ActionBuffSheet.Row row) : base(row) | ||
{ | ||
} | ||
|
||
public Stun(SkillCustomField customField, ActionBuffSheet.Row row) : base(customField, row) | ||
{ | ||
} | ||
|
||
protected Stun(ActionBuff value) : base(value) | ||
{ | ||
} | ||
|
||
public override object Clone() | ||
{ | ||
return new Stun(this); | ||
} | ||
|
||
public override BattleStatus.Skill GiveEffect(CharacterBase affectedCharacter, int simulatorWaveTurn, bool copyCharacter = true) | ||
{ | ||
// Do not anything | ||
return null; | ||
} | ||
|
||
public override ArenaSkill GiveEffectForArena(ArenaCharacter affectedCharacter, int simulatorWaveTurn) | ||
{ | ||
// Do not anything | ||
return null; | ||
} | ||
} | ||
} |
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
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
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 |
---|---|---|
|
@@ -4,5 +4,6 @@ namespace Nekoyume.Model.Skill | |
public enum ActionBuffType | ||
{ | ||
Bleed, | ||
Stun, | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ skill_id,buff_id | |
500003,500001 | ||
500004,500002 | ||
500005,500003 | ||
600001,600001 | ||
600001,600001 | ||
700004,704000 |
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