-- Rings are oxygen by Zarosguth addHook("PlayerThink", function(p) if not (p.mo and p.mo.valid) then return end local ringcost = 10 -- Number of rings an additional second of oxygen costs if p.powers[pw_underwater] == 2 -- When about to drown and p.rings >= ringcost then -- and ringcount is high enough p.powers[pw_underwater] = $+TICRATE -- live a second longer p.rings = $-ringcost -- at the cost of some rings end -- Same for space if p.powers[pw_spacetime] == 2 and p.rings >= ringcost then p.powers[pw_spacetime] = $+TICRATE p.rings = $-ringcost end end)