mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Minor cleanup.
This commit is contained in:
@@ -20,7 +20,9 @@
|
|||||||
if(progress < MAX_PROGRESS)
|
if(progress < MAX_PROGRESS)
|
||||||
progress++
|
progress++
|
||||||
if(progress == MAX_PROGRESS)
|
if(progress == MAX_PROGRESS)
|
||||||
src << "todo alert goasts"
|
for(var/mob/M in dead_mob_list)
|
||||||
|
if(istype(M,/mob/dead) && M.client && M.client.prefs && (M.client.prefs.be_special & BE_ALIEN))
|
||||||
|
M << "An alien egg is ready to hatch!" // Todo add a JUMP link.
|
||||||
update_icon()
|
update_icon()
|
||||||
return
|
return
|
||||||
// Max progress, cancel processing.
|
// Max progress, cancel processing.
|
||||||
@@ -36,17 +38,22 @@
|
|||||||
|
|
||||||
/obj/structure/alien/egg/attack_ghost(var/mob/dead/observer/user)
|
/obj/structure/alien/egg/attack_ghost(var/mob/dead/observer/user)
|
||||||
|
|
||||||
// Check for bans properly.
|
|
||||||
if(jobban_isbanned(user, "Xenomorph"))
|
|
||||||
user << "<span class='danger'>You are banned from playing a Xenomorph.</span>"
|
|
||||||
return
|
|
||||||
|
|
||||||
if(progress == -1) //Egg has been hatched.
|
if(progress == -1) //Egg has been hatched.
|
||||||
return
|
return
|
||||||
else if(progress < MAX_PROGRESS)
|
|
||||||
|
if(progress < MAX_PROGRESS)
|
||||||
user << "\The [src] has not yet matured."
|
user << "\The [src] has not yet matured."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if(!user.MayRespawn(1))
|
||||||
|
return
|
||||||
|
|
||||||
|
// Check for bans properly.
|
||||||
|
if(jobban_isbanned(user, "Xenomorph"))
|
||||||
|
user << "<span class='danger'>You are banned from playing a Xenomorph.</span>"
|
||||||
|
return
|
||||||
|
|
||||||
var/confirm = alert(user, "Are you sure you want to join as a Xenomorph larva?", "Become Larva", "No", "Yes")
|
var/confirm = alert(user, "Are you sure you want to join as a Xenomorph larva?", "Become Larva", "No", "Yes")
|
||||||
|
|
||||||
if(!src || confirm != "Yes")
|
if(!src || confirm != "Yes")
|
||||||
@@ -55,6 +62,10 @@
|
|||||||
if(!user || !user.ckey)
|
if(!user || !user.ckey)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if(progress == -1) //Egg has been hatched.
|
||||||
|
user << "Too slow..."
|
||||||
|
return
|
||||||
|
|
||||||
flick("egg_opening",src)
|
flick("egg_opening",src)
|
||||||
progress = -1 // No harvesting pls.
|
progress = -1 // No harvesting pls.
|
||||||
sleep(5)
|
sleep(5)
|
||||||
|
|||||||
Reference in New Issue
Block a user