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
12 changes: 12 additions & 0 deletions Modules/Shadowrun6e/app/Enums/AdeptPowerActivation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum AdeptPowerActivation: string
{
case MajorAction = 'major';
case MinorAction = 'minor';
case PassiveAction = 'passive';
}
25 changes: 25 additions & 0 deletions Modules/Shadowrun6e/app/Enums/AttackRange.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum AttackRange: string
{
case Close = 'close';
case Near = 'near';
case Medium = 'medium';
case Far = 'far';
case Extreme = 'extreme';

public static function fromMeters(int $range): self
{
return match (true) {
$range <= 3 => self::Close,
$range <= 50 => self::Near,
$range <= 250 => self::Medium,
$range <= 500 => self::Far,
default => self::Extreme,
};
}
}
15 changes: 15 additions & 0 deletions Modules/Shadowrun6e/app/Enums/CapacityCategory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum CapacityCategory: string
{
case Clip = 'c';
case Magazine = 'm';
case Belt = 'b';
case BreakAction = 'a';
case Cylinder = 'cy';
case MuzzleLoader = 'z';
}
12 changes: 12 additions & 0 deletions Modules/Shadowrun6e/app/Enums/CombatSpellType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace Module\Shadowrun6e\Enums;

enum CombatSpellType: string
{
case Direct = 'D';
case Indirect = 'I';
case IndirectArea = 'IA';
}
12 changes: 12 additions & 0 deletions Modules/Shadowrun6e/app/Enums/ComplexFormDuration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum ComplexFormDuration: string
{
case Instantaneous = 'I';
case Permanent = 'P';
case Sustained = 'S';
}
12 changes: 12 additions & 0 deletions Modules/Shadowrun6e/app/Enums/DamageType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum DamageType: string
{
case Physical = 'P';
case Special = 'Special';
case Stun = 'S';
}
13 changes: 13 additions & 0 deletions Modules/Shadowrun6e/app/Enums/FiringMode.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum FiringMode: string
{
case SingleShot = 'SS';
case SemiAutomatic = 'SA';
case BurstFire = 'BF';
case FullyAutomatic = 'FA';
}
16 changes: 16 additions & 0 deletions Modules/Shadowrun6e/app/Enums/FociCategory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum FociCategory: string
{
case Enchanting = 'enchanting';
case Metamagic = 'metamagic';
case Power = 'power';
case Qi = 'qi';
case Spell = 'spell';
case Spirit = 'spirit';
case Weapon = 'weapon';
}
13 changes: 13 additions & 0 deletions Modules/Shadowrun6e/app/Enums/LanguageLevel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum LanguageLevel: int
{
case Fluent = 0;
case Specialist = 1;
case Expert = 2;
case Native = 3;
}
13 changes: 13 additions & 0 deletions Modules/Shadowrun6e/app/Enums/MatrixMode.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum MatrixMode
{
case None;
case AugmentedReality;
case ColdSimVirtualReality;
case HotSimVirtualReality;
}
12 changes: 12 additions & 0 deletions Modules/Shadowrun6e/app/Enums/PreparationTrigger.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum PreparationTrigger: string
{
case Command = 'command';
case Contact = 'contact';
case Time = 'time';
}
11 changes: 11 additions & 0 deletions Modules/Shadowrun6e/app/Enums/SpecializationLevel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum SpecializationLevel: int
{
case Specialization = 0;
case Expertise = 1;
}
12 changes: 12 additions & 0 deletions Modules/Shadowrun6e/app/Enums/SpellAdjustment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum SpellAdjustment: string
{
case AmpUp = 'amp';
case IncreaseArea = 'increase';
case ShiftArea = 'shift';
}
14 changes: 14 additions & 0 deletions Modules/Shadowrun6e/app/Enums/SpellCategory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum SpellCategory: string
{
case Combat = 'combat';
case Detection = 'detection';
case Health = 'health';
case Illusion = 'illusion';
case Manipulation = 'manipulation';
}
12 changes: 12 additions & 0 deletions Modules/Shadowrun6e/app/Enums/SpellDamage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum SpellDamage: string
{
case Physical = 'P';
case Mana = 'S';
case Special = 'Special';
}
13 changes: 13 additions & 0 deletions Modules/Shadowrun6e/app/Enums/SpellDuration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum SpellDuration: string
{
case Instantaneous = 'I';
case Sustained = 'S';
case Limited = 'L';
case Permanent = 'P';
}
13 changes: 13 additions & 0 deletions Modules/Shadowrun6e/app/Enums/SpellRange.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum SpellRange: string
{
case Touch = 'Touch';
case LineOfSight = 'LOS';
case LineOfSightArea = 'LOA(A)';
case Special = 'Special';
}
11 changes: 11 additions & 0 deletions Modules/Shadowrun6e/app/Enums/SpellType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

namespace Modules\Shadowrun6e\Enums;

enum SpellType: string
{
case Mana = 'M';
case Physical = 'P';
}
Loading
Loading