VegansDeluxe.rebuild.States package

Submodules

VegansDeluxe.rebuild.States.Aflame module

class VegansDeluxe.rebuild.States.Aflame.Aflame[source]

Bases: State

add_flame(session, entity, dealer, flame)[source]
id = 'aflame'
class VegansDeluxe.rebuild.States.Aflame.FireAttackGameEvent(session_id, turn, source, target, damage)[source]

Bases: PreDamageGameEvent

class VegansDeluxe.rebuild.States.Aflame.PostFireAttackGameEvent(session_id, turn, source, target, damage)[source]

Bases: PostDamageGameEvent

async VegansDeluxe.rebuild.States.Aflame.perform_fire_attack(session: Session, source, state, message)[source]

Perform a fire attack and calculate the damage.

VegansDeluxe.rebuild.States.Aflame.reset_state(state, session, message)[source]

Reset the state to default values and output a message.

VegansDeluxe.rebuild.States.Armor module

class VegansDeluxe.rebuild.States.Armor.Armor[source]

Bases: State

add(value: int, chance=100)[source]
id = 'armor'
negate_damage(session: Session, source: Entity, message: PostDamageGameEvent)[source]
remove(armor)[source]
roll_armor()[source]

VegansDeluxe.rebuild.States.Bleeding module

class VegansDeluxe.rebuild.States.Bleeding.Bleeding[source]

Bases: State

id = 'bleeding'

VegansDeluxe.rebuild.States.DamageThreshold module

class VegansDeluxe.rebuild.States.DamageThreshold.DamageThreshold[source]

Bases: State

id = 'damage-threshold'

VegansDeluxe.rebuild.States.Dodge module

class VegansDeluxe.rebuild.States.Dodge.Dodge[source]

Bases: State

id = 'dodge'
class VegansDeluxe.rebuild.States.Dodge.DodgeAction(session: Session, source: Entity, skill: Dodge)[source]

Bases: DecisiveStateAction

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Dodge

async func(source, target)[source]

Function to override with actual mechanics of the action.

All Actions have Source Entity and Target Entity. Source and Target may be the same.

property hidden: bool

True if action should not appear for selection.

Overwrite this function to define behaviour.

id: str = 'dodge'

ID of the action.

name: str | LocalizedString = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>

Name of the action, that is displayed to the player.

priority: int = -2

Priority of the action. Defines the order to be executed during CallActions stage.

target_type: TargetType = <VegansDeluxe.core.TargetType.OwnOnly object>

Filter for targets, to which this action can be applied.

class VegansDeluxe.rebuild.States.Dodge.DodgeGameEvent(session_id, turn, entity, bonus)[source]

Bases: GameEvent

VegansDeluxe.rebuild.States.Injury module

class VegansDeluxe.rebuild.States.Injury.Injury[source]

Bases: State

id = 'injury'

VegansDeluxe.rebuild.States.KnockDown module

class VegansDeluxe.rebuild.States.KnockDown.Knockdown[source]

Bases: State

id = 'knockdown'
class VegansDeluxe.rebuild.States.KnockDown.StandUp(session: Session, source: Entity, skill: Knockdown)[source]

Bases: DecisiveStateAction

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Knockdown

async func(source, target)[source]

Function to override with actual mechanics of the action.

All Actions have Source Entity and Target Entity. Source and Target may be the same.

property hidden: bool

True if action should not appear for selection.

Overwrite this function to define behaviour.

id: str = 'stand_up'

ID of the action.

name: str | LocalizedString = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>

Name of the action, that is displayed to the player.

target_type: TargetType = <VegansDeluxe.core.TargetType.OwnOnly object>

Filter for targets, to which this action can be applied.

VegansDeluxe.rebuild.States.KnockedWeapon module

class VegansDeluxe.rebuild.States.KnockedWeapon.KnockedWeapon[source]

Bases: State

drop_weapon(source: Entity)[source]
id = 'knocked-weapon'
pick_up_weapon(source: Entity)[source]
class VegansDeluxe.rebuild.States.KnockedWeapon.PickUp(session: Session, source: Entity, skill: KnockedWeapon)[source]

Bases: DecisiveStateAction

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of KnockedWeapon

async func(source, target)[source]

Function to override with actual mechanics of the action.

All Actions have Source Entity and Target Entity. Source and Target may be the same.

property hidden: bool

True if action should not appear for selection.

Overwrite this function to define behaviour.

id: str = 'pick_up'

ID of the action.

name: str | LocalizedString = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>

Name of the action, that is displayed to the player.

target_type: TargetType = <VegansDeluxe.core.TargetType.OwnOnly object>

Filter for targets, to which this action can be applied.

VegansDeluxe.rebuild.States.Stun module

class VegansDeluxe.rebuild.States.Stun.LayStun(session: Session, source: Entity, skill: Stun)[source]

Bases: DecisiveStateAction

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Stun

async func(source, target)[source]

Function to override with actual mechanics of the action.

All Actions have Source Entity and Target Entity. Source and Target may be the same.

property hidden: bool

True if action should not appear for selection.

Overwrite this function to define behaviour.

id: str = 'lay_stun'

ID of the action.

name: str | LocalizedString = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>

Name of the action, that is displayed to the player.

class VegansDeluxe.rebuild.States.Stun.Stun[source]

Bases: State

id = 'stun'

VegansDeluxe.rebuild.States.Zombie module

class VegansDeluxe.rebuild.States.Zombie.ZombieState[source]

Bases: State

id = 'zombie-state'

Module contents