yeah i think that's commit worthy
This commit is contained in:
parent
49cf2f2bb9
commit
fada3af715
16 changed files with 658 additions and 29 deletions
26
Assets/Scripts/OfficerReload.cs
Normal file
26
Assets/Scripts/OfficerReload.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class OfficerReload : OfficerAbilities
|
||||
{
|
||||
protected override void AbilityEffects()
|
||||
{
|
||||
foreach (PlayerEntity player in TurnHandler.instance.playerEntities)
|
||||
{
|
||||
if (player.currentWeapon.TryGetComponent(out RangedWeapon isRanged) && isRanged)
|
||||
{
|
||||
isRanged.reloadActionUsage = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected override void DeactivateAbility()
|
||||
{
|
||||
foreach (PlayerEntity player in TurnHandler.instance.playerEntities)
|
||||
{
|
||||
if (player.currentWeapon.TryGetComponent(out RangedWeapon isRanged) && isRanged)
|
||||
{
|
||||
isRanged.reloadActionUsage = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue