Skip to content

Commit

Permalink
Scout cloak fix (#16517)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon committed Sep 9, 2024
1 parent 7800cdd commit d3c1f65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/game/objects/items/storage/backpack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -520,16 +520,16 @@
return
if(camo_last_shimmer > world.time - SCOUT_CLOAK_STEALTH_DELAY) //Shimmer after taking aggressive actions
source.alpha = SCOUT_CLOAK_RUN_ALPHA
camo_adjust_energy(src, SCOUT_CLOAK_RUN_DRAIN)
camo_adjust_energy(source, SCOUT_CLOAK_RUN_DRAIN)
else if(camo_last_stealth > world.time - SCOUT_CLOAK_STEALTH_DELAY) //We have an initial reprieve at max invisibility allowing us to reposition, albeit at a high drain rate
source.alpha = SCOUT_CLOAK_STILL_ALPHA
camo_adjust_energy(src, SCOUT_CLOAK_RUN_DRAIN)
camo_adjust_energy(source, SCOUT_CLOAK_RUN_DRAIN)
else if(source.m_intent == MOVE_INTENT_WALK)
source.alpha = SCOUT_CLOAK_WALK_ALPHA
camo_adjust_energy(src, SCOUT_CLOAK_WALK_DRAIN)
camo_adjust_energy(source, SCOUT_CLOAK_WALK_DRAIN)
else
source.alpha = SCOUT_CLOAK_RUN_ALPHA
camo_adjust_energy(src, SCOUT_CLOAK_RUN_DRAIN)
camo_adjust_energy(source, SCOUT_CLOAK_RUN_DRAIN)

///Activates the cloak
/obj/item/storage/backpack/marine/satchel/scout_cloak/proc/camouflage()
Expand Down

0 comments on commit d3c1f65

Please sign in to comment.