mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
fixes negative plasma on xenos (#20950)
* fixes negative plasma on xenos * Update code/datums/spells/alien_spells/basetype_alien_spell.dm Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> --------- Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
@@ -12,9 +12,7 @@ Updates the spell's actions on use as well, so they know when they can or can't
|
||||
var/obj/item/organ/internal/alien/plasmavessel/vessel = get_int_organ(/obj/item/organ/internal/alien/plasmavessel)
|
||||
if(!vessel)
|
||||
return
|
||||
vessel.stored_plasma += amount
|
||||
if(vessel.stored_plasma > vessel.max_plasma)
|
||||
vessel.stored_plasma = vessel.max_plasma
|
||||
vessel.stored_plasma = clamp(vessel.stored_plasma + amount, 0, vessel.max_plasma)
|
||||
update_plasma_display(src)
|
||||
for(var/datum/action/spell_action/action in actions)
|
||||
action.UpdateButtonIcon()
|
||||
|
||||
Reference in New Issue
Block a user