Ghostspawner enable fix (#10943)

The ghostspawner can no longer be enabled if all the available slots have been used up.

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
Werner
2021-01-10 00:40:42 +01:00
committed by GitHub
co-authored by Werner
parent f42430957c
commit f24e9a6d99
2 changed files with 44 additions and 0 deletions
+3
View File
@@ -181,6 +181,9 @@
//Proc to enable the ghostspawner
/datum/ghostspawner/proc/enable()
if((max_count - count) <= 0)
to_chat(usr, "The ghostspawner can not be enabled - No slots available")
return
if(usr)
log_and_message_admins("has enabled the ghostspawner [src.name]")
enabled = TRUE