VegansDeluxe.rebuild.Weapons package

Submodules

VegansDeluxe.rebuild.Weapons.Axe module

class VegansDeluxe.rebuild.Weapons.Axe.Axe(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 2
id = 'axe'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Axe.AxeAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Axe

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.

VegansDeluxe.rebuild.Weapons.BaseballBat module

class VegansDeluxe.rebuild.Weapons.BaseballBat.BaseballBat(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
id = 'baseball_bat'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.BaseballBat.BaseballBatAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of BaseballBat

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.

VegansDeluxe.rebuild.Weapons.Bow module

class VegansDeluxe.rebuild.Weapons.Bow.Bow(session_id: str, entity_id: str)[source]

Bases: RangedWeapon

accuracy_bonus = 1
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 3
id = 'bow'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Bow.BowAttack(*args)[source]

Bases: RangedAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Bow

class VegansDeluxe.rebuild.Weapons.Bow.FireArrow(*args)[source]

Bases: RangedAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Bow

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 = 'fire_arrow'

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.Enemies object>

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

VegansDeluxe.rebuild.Weapons.Chain module

class VegansDeluxe.rebuild.Weapons.Chain.Chain(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 2
id = 'chain'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Chain.ChainAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Chain

class VegansDeluxe.rebuild.Weapons.Chain.KnockWeapon(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Chain

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 = 'knock_weapon'

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 = -1

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

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

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

VegansDeluxe.rebuild.Weapons.Claws module

class VegansDeluxe.rebuild.Weapons.Claws.Claws(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 2
id = 'claws'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Claws.ClawsAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Claws

class VegansDeluxe.rebuild.Weapons.Claws.SwitchClaws(session: Session, source: Entity, weapon: T)[source]

Bases: FreeWeaponAction

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Claws

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.

id: str = 'switch_claws'

ID of the action.

property name
priority: int = -10

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.

VegansDeluxe.rebuild.Weapons.Fist module

class VegansDeluxe.rebuild.Weapons.Fist.Fist(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
id = 'fist'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Fist.FistAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Fist

VegansDeluxe.rebuild.Weapons.Flamethrower module

class VegansDeluxe.rebuild.Weapons.Flamethrower.Flamethrower(session_id: str, entity_id: str)[source]

Bases: RangedWeapon

accuracy_bonus = 2
cubes = 2
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 3
id = 'flamethrower'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Flamethrower.FlamethrowerAttack(*args)[source]

Bases: RangedAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

calculate_damage(source, target)[source]

Calculate the damage based on weapon’s damage bonus and accuracy

cls

alias of Flamethrower

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.

VegansDeluxe.rebuild.Weapons.Hatchet module

class VegansDeluxe.rebuild.Weapons.Hatchet.Hatchet(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 2
id = 'hatchet'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Hatchet.HatchetAttack(session: Session, source: Entity, weapon: Hatchet)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

calculate_damage(source, target)[source]

Calculate the damage based on weapon’s damage bonus and accuracy

cls

alias of Hatchet

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.

VegansDeluxe.rebuild.Weapons.Knife module

class VegansDeluxe.rebuild.Weapons.Knife.Knife(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
id = 'knife'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Knife.KnifeAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Knife

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.

VegansDeluxe.rebuild.Weapons.Knuckles module

class VegansDeluxe.rebuild.Weapons.Knuckles.Knuckles(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 2
id = 'knuckles'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Knuckles.KnucklesAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Knuckles

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.

priority: int = -1

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

VegansDeluxe.rebuild.Weapons.Kuvalda module

class VegansDeluxe.rebuild.Weapons.Kuvalda.Kuvalda(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = 'Ближний бой, урон 1-3. Способность: Вы можете сокрушить цель, нанося ей (1 + потраченная энергия цели) урона и затрачивая 4 энергии.'
energy_cost = 2
id = 'kuvalda'
name = 'Кувалда'
class VegansDeluxe.rebuild.Weapons.Kuvalda.KuvaldaAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Kuvalda

class VegansDeluxe.rebuild.Weapons.Kuvalda.KuvaldaCrush(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

calculate_damage(source: Entity, target: Entity) int[source]

Calculate the damage based on weapon’s damage bonus and accuracy

cls

alias of Kuvalda

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 = 'crush'

ID of the action.

name: str | LocalizedString = 'Сокрушить'

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

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

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

VegansDeluxe.rebuild.Weapons.Mace module

class VegansDeluxe.rebuild.Weapons.Mace.Mace(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 2
id = 'mace'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Mace.MaceAttack(session: Session, source: Entity, weapon: Mace)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

calculate_damage(source: Entity, target: Entity) int[source]

Calculates the damage dealt to the target, with bonus damage for consecutive attacks on the same target.

cls

alias of Mace

async func(source: Entity, target: Entity) int[source]

Attacks the target and keeps track of consecutive attacks on the same target for damage bonus.

VegansDeluxe.rebuild.Weapons.Molot module

class VegansDeluxe.rebuild.Weapons.Molot.Molot(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 2
id = 'molot'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Molot.MolotAttack(session: Session, source: Entity, weapon: Molot)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

calculate_damage(source, target)[source]

Calculate the damage based on weapon’s damage bonus and accuracy

cls

alias of Molot

energy_bonus(source)[source]
class VegansDeluxe.rebuild.Weapons.Molot.TrueStrike(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

calculate_damage(source, target)[source]

Calculate the damage based on weapon’s damage bonus and accuracy

cls

alias of Molot

energy_bonus(source)[source]
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 = 'true_strike'

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 = -3

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

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

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

VegansDeluxe.rebuild.Weapons.Pistol module

class VegansDeluxe.rebuild.Weapons.Pistol.Pistol(session_id: str, entity_id: str)[source]

Bases: RangedWeapon

accuracy_bonus = 3
cubes = 3
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 3
id = 'pistol'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Pistol.PistolAttack(*args)[source]

Bases: RangedAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Pistol

VegansDeluxe.rebuild.Weapons.Police module

class VegansDeluxe.rebuild.Weapons.Police.Police(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 2
id = 'police_bat'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Police.PoliceAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Police

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.

priority: int = -1

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

VegansDeluxe.rebuild.Weapons.Revolver module

class VegansDeluxe.rebuild.Weapons.Revolver.Revolver(session_id: str, entity_id: str)[source]

Bases: RangedWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 3
id = 'revolver'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Revolver.RevolverAttack(*args)[source]

Bases: RangedAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

calculate_damage(source, target)[source]

Calculate the damage based on weapon’s damage bonus and accuracy

cls

alias of Revolver

class VegansDeluxe.rebuild.Weapons.Revolver.ShootYourself(session: Session, source: Entity, weapon: T)[source]

Bases: DecisiveWeaponAction

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Revolver

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.

id: str = 'shoot_yourself'

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 = 3

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.

VegansDeluxe.rebuild.Weapons.Rifle module

class VegansDeluxe.rebuild.Weapons.Rifle.AimRifle(session: Session, source: Entity, weapon: Rifle)[source]

Bases: DecisiveWeaponAction

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Rifle

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.

id: str = 'aim_rifle'

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.Enemies object>

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

class VegansDeluxe.rebuild.Weapons.Rifle.Rifle(session_id: str, entity_id: str)[source]

Bases: RangedWeapon

accuracy_bonus = -4
cubes = 1
damage_bonus = 7
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 5
id = 'sniper_rifle'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Rifle.RifleAttack(session: Session, source: Entity, weapon: Rifle)[source]

Bases: RangedAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

calculate_damage(source, target)[source]

Calculate the damage based on weapon’s damage bonus and accuracy

cls

alias of Rifle

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.

VegansDeluxe.rebuild.Weapons.Saber module

class VegansDeluxe.rebuild.Weapons.Saber.FistAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Saber

class VegansDeluxe.rebuild.Weapons.Saber.Parry(session: Session, source: Entity, weapon: Saber)[source]

Bases: DecisiveWeaponAction

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Saber

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 = 'parry'

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 = -4

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

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

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

class VegansDeluxe.rebuild.Weapons.Saber.Saber(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 2
id = 'saber'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>

VegansDeluxe.rebuild.Weapons.Saw module

class VegansDeluxe.rebuild.Weapons.Saw.Saw(session_id: str, entity_id: str)[source]

Bases: RangedWeapon

accuracy_bonus = 3
cubes = 2
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 3
id = 'saw'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Saw.SawAttack(*args)[source]

Bases: RangedAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Saw

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.

VegansDeluxe.rebuild.Weapons.SawedOffShotgun module

class VegansDeluxe.rebuild.Weapons.SawedOffShotgun.SawedOffShotgun(session_id: str, entity_id: str)[source]

Bases: RangedWeapon

accuracy_bonus = 0
cubes = 4
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 3
id = 'sawed_off_shotgun'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.SawedOffShotgun.SawedOffShotgunAttack(*args)[source]

Bases: ShotgunAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of SawedOffShotgun

VegansDeluxe.rebuild.Weapons.Shaft module

class VegansDeluxe.rebuild.Weapons.Shaft.KnockDown(session: Session, source: Entity, weapon: Shaft)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Shaft

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 = 'knock_down'

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.Enemies object>

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

class VegansDeluxe.rebuild.Weapons.Shaft.Shaft(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

accuracy_bonus = 2
cubes = 3
damage_bonus = 0
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 2
id = 'shaft'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Shaft.ShaftAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Shaft

VegansDeluxe.rebuild.Weapons.Shotgun module

class VegansDeluxe.rebuild.Weapons.Shotgun.Shotgun(session_id: str, entity_id: str)[source]

Bases: RangedWeapon

accuracy_bonus = -2
cubes = 6
damage_bonus = 1
description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
energy_cost = 4
id = 'shotgun'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Shotgun.ShotgunAttack(*args)[source]

Bases: RangedAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

calculate_damage(source, target)[source]

Calculate the damage based on weapon’s damage bonus and accuracy

cls

alias of Shotgun

VegansDeluxe.rebuild.Weapons.Torch module

class VegansDeluxe.rebuild.Weapons.Torch.Torch(session_id: str, entity_id: str)[source]

Bases: MeleeWeapon

description = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
id = 'torch'
name = <VegansDeluxe.core.Translator.LocalizedString.LocalizedString object>
class VegansDeluxe.rebuild.Weapons.Torch.TorchAttack(*args)[source]

Bases: MeleeAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of Torch

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.

VegansDeluxe.rebuild.Weapons.Watergun module

class VegansDeluxe.rebuild.Weapons.Watergun.CreateWaterShield(session: Session, source: Entity, weapon: WaterGun)[source]

Bases: DecisiveWeaponAction

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of WaterGun

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 = 'watershield'

ID of the action.

name: str | LocalizedString = 'Водяной щит'

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

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

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

class VegansDeluxe.rebuild.Weapons.Watergun.PistolAttack(*args)[source]

Bases: RangedAttack

Parameters:
  • session – Session instance

  • source – Entity instance of action owner

cls

alias of WaterGun

class VegansDeluxe.rebuild.Weapons.Watergun.WaterGun(session_id: str, entity_id: str)[source]

Bases: RangedWeapon

accuracy_bonus = 1
cubes = 3
damage_bonus = 0
description = 'Дальний бой, урон 1-3. Способность: создаёт водяной щит вокруг цели, из-за чего та не может загореться три хода, восстанавливает 2 энергии в ход и получает +1 урона.'
energy_cost = 3
id = 'watergun'
name = 'Водомет'

Module contents