Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/slai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
CardColor,
CardRarity,
CardCostKind,
Tag,
ModifierKind,
CandidatePool,
RoomKind,
Expand Down Expand Up @@ -46,6 +47,7 @@
"CardColor",
"CardRarity",
"CardCostKind",
"Tag",
"ModifierKind",
"CandidatePool",
"RoomKind",
Expand Down
1 change: 1 addition & 0 deletions src/cards/a_thousand_cuts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub static A_THOUSAND_CUTS: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static A_THOUSAND_CUTS_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/accuracy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub static ACCURACY: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static ACCURACY_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/acrobatics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub static ACROBATICS: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static ACROBATICS_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/adrenaline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub static ADRENALINE: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static ADRENALINE_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/after_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub static AFTER_IMAGE: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static AFTER_IMAGE_PLUS: Entity = Entity {
Expand Down
3 changes: 2 additions & 1 deletion src/cards/all_out_attack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::effect::{
CandidatePool, DiscardSource, Effect, EffectKind, SelectionKind, Target,
};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

pub static ALL_OUT_ATTACK: Entity = make_entity_card(
CardName::AllOutAttack,
Expand Down Expand Up @@ -39,6 +39,7 @@ pub static ALL_OUT_ATTACK: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Discard],
);
// Upgraded
pub static ALL_OUT_ATTACK_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/backflip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub static BACKFLIP: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static BACKFLIP_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/backstab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub static BACKSTAB: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static BACKSTAB_PLUS: Entity = Entity {
Expand Down
3 changes: 2 additions & 1 deletion src/cards/bane.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::effect::{CandidatePool, Effect, EffectKind, SelectionKind, Target};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

pub static BANE: Entity = make_entity_card(
CardName::Bane,
Expand Down Expand Up @@ -35,6 +35,7 @@ pub static BANE: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Poison],
);
// Upgraded
pub static BANE_PLUS: Entity = Entity {
Expand Down
3 changes: 2 additions & 1 deletion src/cards/blade_dance.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::effect::{Effect, EffectKind, Target};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

pub static BLADE_DANCE: Entity = make_entity_card(
CardName::BladeDance,
Expand All @@ -25,6 +25,7 @@ pub static BLADE_DANCE: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Shiv],
);
// Upgraded
pub static BLADE_DANCE_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/blur.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub static BLUR: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static BLUR_PLUS: Entity = Entity {
Expand Down
3 changes: 2 additions & 1 deletion src/cards/bouncing_flask.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::effect::{CandidatePool, Effect, EffectKind, SelectionKind, Target};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::modifier::ModifierKind;
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

const BOUNCE: Effect = Effect {
kind: EffectKind::ModifierGain {
Expand Down Expand Up @@ -31,6 +31,7 @@ pub static BOUNCING_FLASK: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Poison],
);
// Upgraded: one more bounce
pub static BOUNCING_FLASK_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/bullet_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub static BULLET_TIME: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static BULLET_TIME_PLUS: Entity = Entity {
Expand Down
2 changes: 2 additions & 0 deletions src/cards/burn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub static BURN: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Never,
&[],
);

pub static BURN_UPGRADED: Entity = make_entity_card(
Expand All @@ -35,4 +36,5 @@ pub static BURN_UPGRADED: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Never,
&[],
);
1 change: 1 addition & 0 deletions src/cards/burst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub static BURST: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static BURST_PLUS: Entity = Entity {
Expand Down
3 changes: 2 additions & 1 deletion src/cards/calculated_gamble.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::effect::{Effect, EffectKind, Target};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

pub static CALCULATED_GAMBLE: Entity = make_entity_card(
CardName::CalculatedGamble,
Expand All @@ -22,6 +22,7 @@ pub static CALCULATED_GAMBLE: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Discard],
);
// Upgraded
pub static CALCULATED_GAMBLE_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/caltrops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub static CALTROPS: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static CALTROPS_PLUS: Entity = Entity {
Expand Down
3 changes: 2 additions & 1 deletion src/cards/catalyst.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::effect::{CandidatePool, Effect, EffectKind, SelectionKind, Target};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::modifier::ModifierKind;
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

pub static CATALYST: Entity = make_entity_card(
CardName::Catalyst,
Expand Down Expand Up @@ -29,6 +29,7 @@ pub static CATALYST: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Poison],
);
// Upgraded: triples instead of doubles
pub static CATALYST_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/choke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub static CHOKE: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static CHOKE_PLUS: Entity = Entity {
Expand Down
3 changes: 2 additions & 1 deletion src/cards/cloak_and_dagger.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::effect::{CandidatePool, Effect, EffectKind, SelectionKind, Target};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

pub static CLOAK_AND_DAGGER: Entity = make_entity_card(
CardName::CloakAndDagger,
Expand Down Expand Up @@ -35,6 +35,7 @@ pub static CLOAK_AND_DAGGER: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Shiv],
);
// Upgraded
pub static CLOAK_AND_DAGGER_PLUS: Entity = Entity {
Expand Down
3 changes: 2 additions & 1 deletion src/cards/concentrate.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::effect::{CandidatePool, DiscardSource, Effect, EffectKind, SelectionKind, Target};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

pub static CONCENTRATE: Entity = make_entity_card(
CardName::Concentrate,
Expand Down Expand Up @@ -34,6 +34,7 @@ pub static CONCENTRATE: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Discard],
);
// Upgraded
pub static CONCENTRATE_PLUS: Entity = Entity {
Expand Down
3 changes: 2 additions & 1 deletion src/cards/corpse_explosion.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::effect::{CandidatePool, Effect, EffectKind, SelectionKind, Target};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::modifier::ModifierKind;
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

pub static CORPSE_EXPLOSION: Entity = make_entity_card(
CardName::CorpseExplosion,
Expand Down Expand Up @@ -42,6 +42,7 @@ pub static CORPSE_EXPLOSION: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Poison],
);
// Upgraded
pub static CORPSE_EXPLOSION_PLUS: Entity = Entity {
Expand Down
3 changes: 2 additions & 1 deletion src/cards/crippling_poison.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::effect::{CandidatePool, Effect, EffectKind, SelectionKind, Target};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::modifier::ModifierKind;
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

pub static CRIPPLING_POISON: Entity = make_entity_card(
CardName::CripplingPoison,
Expand Down Expand Up @@ -42,6 +42,7 @@ pub static CRIPPLING_POISON: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Poison],
);
// Upgraded
pub static CRIPPLING_POISON_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/dagger_spray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub static DAGGER_SPRAY: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static DAGGER_SPRAY_PLUS: Entity = Entity {
Expand Down
3 changes: 2 additions & 1 deletion src/cards/dagger_throw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::effect::{
CandidatePool, DiscardSource, Effect, EffectKind, SelectionKind, Target,
};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

pub static DAGGER_THROW: Entity = make_entity_card(
CardName::DaggerThrow,
Expand Down Expand Up @@ -44,6 +44,7 @@ pub static DAGGER_THROW: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Discard],
);
// Upgraded
pub static DAGGER_THROW_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/dash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub static DASH: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static DASH_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/dazed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ pub static DAZED: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Never, // Unplayable
&[],
);
3 changes: 2 additions & 1 deletion src/cards/deadly_poison.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::effect::{CandidatePool, Effect, EffectKind, SelectionKind, Target};
use crate::entity::{CardCostKind, Entity, PlayRestriction, make_entity_card};
use crate::modifier::ModifierKind;
use crate::types::{CardColor, CardKind, CardName, CardRarity};
use crate::types::{CardColor, CardKind, CardName, CardRarity, Tag};

pub static DEADLY_POISON: Entity = make_entity_card(
CardName::DeadlyPoison,
Expand Down Expand Up @@ -29,6 +29,7 @@ pub static DEADLY_POISON: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[Tag::Poison],
);
// Upgraded
pub static DEADLY_POISON_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/defend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub static DEFEND: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static DEFEND_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/deflect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub static DEFLECT: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static DEFLECT_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/die_die_die.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub static DIE_DIE_DIE: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static DIE_DIE_DIE_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/distraction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub static DISTRACTION: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static DISTRACTION_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/dodge_and_roll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub static DODGE_AND_ROLL: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static DODGE_AND_ROLL_PLUS: Entity = Entity {
Expand Down
1 change: 1 addition & 0 deletions src/cards/doppelganger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pub static DOPPELGANGER: Entity = make_entity_card(
&[],
&[],
PlayRestriction::Always,
&[],
);
// Upgraded
pub static DOPPELGANGER_PLUS: Entity = Entity {
Expand Down
Loading