-
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
5 changed files
with
100 additions
and
3 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,4 +1,5 @@ | ||
from .vanilla import VanillaWeapon | ||
from .other_claymore import Claymores | ||
|
||
|
||
Weapons = VanillaWeapon | VanillaWeapon | ||
Weapons = VanillaWeapon | Claymores |
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,59 @@ | ||
|
||
|
||
from typing import Any, List, Literal | ||
|
||
from ....action import CreateObjectAction | ||
|
||
from ....event import SkillEndEventArguments | ||
|
||
from .base import RoundEffectWeaponBase | ||
|
||
from ....struct import Cost, ObjectPosition | ||
|
||
from ....consts import CostLabels, ObjectPositionType, ObjectType, WeaponType | ||
|
||
|
||
class TheBell(RoundEffectWeaponBase): | ||
name: Literal['The Bell'] | ||
desc: str = ( | ||
'The character deals +1 DMG. ' | ||
'After the character uses a skill: Gives 1 Shield point to your ' | ||
'active character. (Once per Round, stacks up to 2 points)' | ||
) | ||
type: Literal[ObjectType.WEAPON] = ObjectType.WEAPON | ||
version: Literal['3.7'] = '3.7' | ||
cost_label: int = CostLabels.CARD.value | CostLabels.WEAPON.value | ||
weapon_type: WeaponType = WeaponType.CLAYMORE | ||
|
||
cost: Cost = Cost(same_dice_number = 3) | ||
max_usage_per_round: int = 1 | ||
|
||
def event_handler_SKILL_END( | ||
self, event: SkillEndEventArguments, match: Any | ||
) -> List[CreateObjectAction]: | ||
""" | ||
If self charactor use any skill, and have usage, create Rebellious | ||
Shield. | ||
""" | ||
if not self.position.check_position_valid( | ||
event.action.position, match, player_idx_same = True, | ||
charactor_idx_same = True, target_area = ObjectPositionType.SKILL | ||
): | ||
# not self charactor use skill | ||
return [] | ||
if self.usage == 0: | ||
# no usage | ||
return [] | ||
self.usage -= 1 | ||
return [CreateObjectAction( | ||
object_name = 'Rebellious Shield', | ||
object_position = ObjectPosition( | ||
player_idx = self.position.player_idx, | ||
area = ObjectPositionType.TEAM_STATUS, | ||
id = -1 | ||
), | ||
object_arguments = {} | ||
)] | ||
|
||
|
||
Claymores = TheBell | TheBell |
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,16 @@ | ||
from typing import Literal | ||
from .base import ShieldTeamStatus | ||
|
||
|
||
class RebelliousShield(ShieldTeamStatus): | ||
name: Literal['Rebellious Shield'] = 'Rebellious Shield' | ||
desc: str = ( | ||
'Grants 1 Shield point to defend your active charactor. ' | ||
'(Can stack. Max 2 Points.)' | ||
) | ||
version: Literal['3.7'] = '3.7' | ||
usage: int = 1 | ||
max_usage: int = 2 | ||
|
||
|
||
WeaponTeamStatus = RebelliousShield | RebelliousShield |