| 1 |
from focs._effects import EffectsGroup, HasTag, IsSource, OnPlanet, Planet, SetStealth, Source, Value |
| 2 |
from macros.stealth import HIGH_STEALTH, LOW_STEALTH, MEDIUM_STEALTH |
| 3 |
|
| 4 |
# Linter get crazy because of common suffix for two different files common/stealth.py |
| 5 |
assert isinstance(LOW_STEALTH, int) |
| 6 |
assert isinstance(MEDIUM_STEALTH, int) |
| 7 |
assert isinstance(HIGH_STEALTH, int) |
| 8 |
|
| 9 |
BAD_STEALTH = [ |
| 10 |
EffectsGroup( |
| 11 |
description="BAD_STEALTH_DESC", |
| 12 |
scope=IsSource | (OnPlanet(id=Source.ID) & ~HasTag(name="ORBITAL")), |
| 13 |
activation=Planet(), |
| 14 |
stackinggroup="SPECIES_STEALTH_STACK", |
| 15 |
effects=SetStealth(value=Value - LOW_STEALTH), |
| 16 |
) |
| 17 |
] |
| 18 |
|
| 19 |
GOOD_STEALTH = [ |
| 20 |
EffectsGroup( |
| 21 |
description="GOOD_STEALTH_DESC", |
| 22 |
scope=IsSource | (OnPlanet(id=Source.ID) & ~HasTag(name="ORBITAL")), |
| 23 |
activation=Planet(), |
| 24 |
stackinggroup="SPECIES_STEALTH_STACK", |
| 25 |
effects=SetStealth(value=Value + LOW_STEALTH), |
| 26 |
) |
| 27 |
] |
| 28 |
|
| 29 |
|
| 30 |
GREAT_STEALTH = [ |
| 31 |
EffectsGroup( |
| 32 |
description="GREAT_STEALTH_DESC", |
| 33 |
scope=IsSource | (OnPlanet(id=Source.ID) & ~HasTag(name="ORBITAL")), |
| 34 |
activation=Planet(), |
| 35 |
stackinggroup="SPECIES_STEALTH_STACK", |
| 36 |
effects=SetStealth(value=Value + MEDIUM_STEALTH), |
| 37 |
) |
| 38 |
] |
| 39 |
|
| 40 |
|
| 41 |
ULTIMATE_STEALTH = [ |
| 42 |
EffectsGroup( |
| 43 |
description="ULTIMATE_STEALTH_DESC", |
| 44 |
scope=IsSource | (OnPlanet(id=Source.ID) & ~HasTag(name="ORBITAL")), |
| 45 |
activation=Planet(), |
| 46 |
stackinggroup="SPECIES_STEALTH_STACK", |
| 47 |
effects=SetStealth(value=Value + HIGH_STEALTH), |
| 48 |
) |
| 49 |
] |