-
Notifications
You must be signed in to change notification settings - Fork 3
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
7 changed files
with
330 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
from .collei_3_3 import FloralSidewinder_3_3 | ||
from .maguu_kenki_3_3 import MaguuKenki_3_3 | ||
from .yoimiya_3_3 import Yoimiya_3_3 | ||
from .yoimiya_3_4 import Yoimiya_3_4 | ||
|
||
|
||
OldTalents = FloralSidewinder_3_3 | FloralSidewinder_3_3 | ||
OldCharactors = MaguuKenki_3_3 | MaguuKenki_3_3 | ||
OldCharactors = Yoimiya_3_4 | MaguuKenki_3_3 | Yoimiya_3_3 |
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 @@ | ||
from typing import List, Literal | ||
from ...consts import DieColor | ||
from ...struct import Cost | ||
from ..pyro.yoimiya import Yoimiya as Y_3_8 | ||
from ..pyro.yoimiya import RyuukinSaxifrage as RS_3_8 | ||
from ..pyro.yoimiya import FireworkFlareUp, NiwabiFireDance | ||
|
||
|
||
class RyuukinSaxifrage(RS_3_8): | ||
cost: Cost = Cost( | ||
elemental_dice_color = DieColor.PYRO, | ||
elemental_dice_number = 3, | ||
charge = 2 | ||
) | ||
|
||
|
||
class Yoimiya_3_3(Y_3_8): | ||
version: Literal['3.3'] | ||
max_charge: int = 2 | ||
skills: List[FireworkFlareUp | NiwabiFireDance | RyuukinSaxifrage] = [] | ||
|
||
def _init_skills(self) -> None: | ||
self.skills = [ | ||
FireworkFlareUp(), | ||
NiwabiFireDance(), | ||
RyuukinSaxifrage() | ||
] |
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 @@ | ||
from typing import List, Literal | ||
from ...consts import DieColor | ||
from ...struct import Cost | ||
from ..pyro.yoimiya import Yoimiya as Y_3_8 | ||
from ..pyro.yoimiya import RyuukinSaxifrage as RS_3_8 | ||
from ..pyro.yoimiya import FireworkFlareUp, NiwabiFireDance | ||
|
||
|
||
class RyuukinSaxifrage(RS_3_8): | ||
damage: int = 4 | ||
cost: Cost = Cost( | ||
elemental_dice_color = DieColor.PYRO, | ||
elemental_dice_number = 4, | ||
charge = 3 | ||
) | ||
|
||
|
||
class Yoimiya_3_4(Y_3_8): | ||
version: Literal['3.4'] | ||
skills: List[FireworkFlareUp | NiwabiFireDance | RyuukinSaxifrage] = [] | ||
|
||
def _init_skills(self) -> None: | ||
self.skills = [ | ||
FireworkFlareUp(), | ||
NiwabiFireDance(), | ||
RyuukinSaxifrage() | ||
] |
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
from .fatui_pyro_agent import FatuiPyroAgent, PaidinFull | ||
from .klee import Klee, PoundingSurprise | ||
from .bennett import Bennett, GrandExpectation | ||
from .yoimiya import Yoimiya, NaganoharaMeteorSwarm | ||
|
||
|
||
PyroCharactors = FatuiPyroAgent | Klee | Bennett | ||
PyroCharactors = FatuiPyroAgent | Klee | Bennett | Yoimiya | ||
# SummonsOfPyroCharactors = | ||
PyroCharactorTalents = PaidinFull | PoundingSurprise | GrandExpectation | ||
PyroCharactorTalents = ( | ||
PaidinFull | PoundingSurprise | GrandExpectation | NaganoharaMeteorSwarm | ||
) |
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,128 @@ | ||
from typing import Any, List, Literal | ||
|
||
from ...action import Actions, CreateObjectAction | ||
from ...struct import Cost, ObjectPosition | ||
|
||
from ...consts import ( | ||
DamageElementalType, DieColor, ElementType, FactionType, | ||
ObjectPositionType, WeaponType | ||
) | ||
from ..charactor_base import ( | ||
ElementalBurstBase, ElementalSkillBase, | ||
PhysicalNormalAttackBase, CharactorBase, SkillTalent | ||
) | ||
|
||
|
||
# Charactor status. DO NOT define here, define in server/status/characor_status | ||
# Here is just example. | ||
|
||
|
||
# Skills | ||
|
||
|
||
class FireworkFlareUp(PhysicalNormalAttackBase): | ||
name: Literal['Firework Flare-Up'] = 'Firework Flare-Up' | ||
cost: Cost = PhysicalNormalAttackBase.get_cost(ElementType.PYRO) | ||
|
||
|
||
class NiwabiFireDance(ElementalSkillBase): | ||
name: Literal['Niwabi Fire-Dance'] = 'Niwabi Fire-Dance' | ||
desc: str = ( | ||
'This character gains Niwabi Enshou. ' | ||
'(This Skill does not grant Energy)' | ||
) | ||
damage: int = 0 | ||
damage_type: DamageElementalType = DamageElementalType.PIERCING | ||
cost: Cost = Cost( | ||
elemental_dice_color = DieColor.PYRO, | ||
elemental_dice_number = 1 | ||
) | ||
|
||
def get_actions(self, match: Any) -> List[CreateObjectAction]: | ||
""" | ||
only create object | ||
""" | ||
return [ | ||
CreateObjectAction( | ||
object_name = 'Niwabi Enshou', | ||
object_position = self.position.set_area( | ||
ObjectPositionType.CHARACTOR_STATUS), | ||
object_arguments = {} | ||
) | ||
] | ||
|
||
|
||
class RyuukinSaxifrage(ElementalBurstBase): | ||
name: Literal['Ryuukin Saxifrage'] = 'Ryuukin Saxifrage' | ||
desc: str = '''Deals 3 Pyro DMG, creates 1 Aurous Blaze.''' | ||
damage: int = 3 | ||
damage_type: DamageElementalType = DamageElementalType.PYRO | ||
cost: Cost = Cost( | ||
elemental_dice_color = DieColor.PYRO, | ||
elemental_dice_number = 3, | ||
charge = 3 | ||
) | ||
|
||
def get_actions(self, match: Any) -> List[Actions]: | ||
""" | ||
Attack and create object | ||
""" | ||
position = ObjectPosition( | ||
player_idx = self.position.player_idx, | ||
area = ObjectPositionType.TEAM_STATUS, | ||
id = -1 | ||
) | ||
return super().get_actions(match) + [ | ||
CreateObjectAction( | ||
object_name = 'Aurous Blaze', | ||
object_position = position, | ||
object_arguments = {} | ||
) | ||
] | ||
|
||
|
||
# Talents | ||
|
||
|
||
class NaganoharaMeteorSwarm(SkillTalent): | ||
name: Literal['Naganohara Meteor Swarm'] | ||
desc: str = ( | ||
'Combat Action: When your active character is Yoimiya, equip this ' | ||
'card. After Yoimiya equips this card, immediately use Niwabi ' | ||
'Fire-Dance once. After your Yoimiya, who has this card equipped, ' | ||
'triggers Niwabi Enshou: Deal 1 additional Pyro DMG.' | ||
) | ||
version: Literal['3.3'] = '3.3' | ||
charactor_name: Literal['Yoimiya'] = 'Yoimiya' | ||
cost: Cost = Cost( | ||
elemental_dice_color = DieColor.PYRO, | ||
elemental_dice_number = 2, | ||
) | ||
skill: NiwabiFireDance = NiwabiFireDance() | ||
|
||
|
||
# charactor base | ||
|
||
|
||
class Yoimiya(CharactorBase): | ||
name: Literal['Yoimiya'] # Do not set default value for charactor name | ||
version: Literal['3.8'] = '3.8' | ||
desc: str = '''"Frolicking Flames" Yoimiya''' | ||
element: ElementType = ElementType.PYRO | ||
max_hp: int = 10 | ||
max_charge: int = 3 | ||
skills: List[ | ||
FireworkFlareUp | NiwabiFireDance | RyuukinSaxifrage | ||
] = [] | ||
faction: List[FactionType] = [ | ||
FactionType.INAZUMA | ||
] | ||
weapon_type: WeaponType = WeaponType.BOW | ||
talent: NaganoharaMeteorSwarm | None = None | ||
|
||
def _init_skills(self) -> None: | ||
self.skills = [ | ||
FireworkFlareUp(), | ||
NiwabiFireDance(), | ||
RyuukinSaxifrage() | ||
] |
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