From 80454ec8ebc58fce9d3a073751cb73546a949624 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Thu, 27 Apr 2023 12:28:32 -0500 Subject: [PATCH] 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> --- code/datums/spells/alien_spells/basetype_alien_spell.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/datums/spells/alien_spells/basetype_alien_spell.dm b/code/datums/spells/alien_spells/basetype_alien_spell.dm index a5b3dcfdea7..3cacc2e8e02 100644 --- a/code/datums/spells/alien_spells/basetype_alien_spell.dm +++ b/code/datums/spells/alien_spells/basetype_alien_spell.dm @@ -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()