mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-19 04:08:55 +01:00
Using the Global Vars system for queen_amount :v
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var/global/list/queen_amount = 0 //We only gonna want 1 queen in the world.
|
||||
GLOBAL_VAR_INIT(queen_amount, 0) //We only gonna want 1 queen in the world.
|
||||
|
||||
/*
|
||||
//All the REAL types of metroids!
|
||||
@@ -619,12 +619,12 @@ var/global/list/queen_amount = 0 //We only gonna want 1 queen in the world.
|
||||
|
||||
/mob/living/simple_mob/metroid/juvenile/queen/Initialize()
|
||||
playsound(src, 'sound/metroid/metroidqueen.ogg', 100, 1)
|
||||
queen_amount++
|
||||
GLOB.queen_amount++
|
||||
..()
|
||||
|
||||
/mob/living/simple_mob/metroid/juvenile/queen/death()
|
||||
playsound(src, 'sound/metroid/metroidqueendeath.ogg', 100, 1)
|
||||
queen_amount--
|
||||
GLOB.queen_amount--
|
||||
..()
|
||||
|
||||
/mob/living/simple_mob/metroid/juvenile/queen //active noms
|
||||
|
||||
Reference in New Issue
Block a user