addHook("PlayerThink", function(player) player.powers[pw_super] = 1 if player.rings <= 1 player.rings = 1 end if ((leveltime % TICRATE == 0) and not (player.mo.state >= S_PLAY_SUPER_TRANS1) and not (player.playerstate ~= PST_LIVE)) then player.rings = $1 + 1 end if not (player.charflags & SF_SUPER) then player.charflags = $|SF_SUPER end if (player.mo.issuper == nil) then player.mo.issuper = 1 P_DoSuperTransformation(player, false) end end) addHook("PlayerSpawn", function(player) if (not (All7Emeralds(emeralds))) and not player.bot for i = MT_EMERALD1,MT_EMERALD7 do P_SpawnMobj(player.mo.x, player.mo.y, player.mo.z, i) end end end)