Midround bomberman (#21520)

* Progress

* Whoops

* Test

* Fixes

* Landmarks and shit

* Additional fixes

* Duh
This commit is contained in:
ShiftyRail
2019-05-06 17:29:38 +02:00
committed by Kurfursten
parent 7872fd3073
commit b9d51da9e3
3 changed files with 40 additions and 15 deletions

View File

@@ -1083,3 +1083,28 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
return
paiController.recruitWindow(src)
// -- Require at least 2 players to start.
// Global variable on whether an arena is being created or not
var/creating_arena = FALSE
/mob/dead/observer/verb/request_bomberman()
set name = "Request a bomberman arena"
set category = "Ghost"
set desc = "Create a bomberman arena for other observers and dead players."
if (ticker && ticker.current_state != GAME_STATE_PLAYING)
to_chat(src, "<span class ='notice'>You can't use this verb before the game has started.</span>")
return
if (arenas.len)
to_chat(src, "<span class ='notice'>There are already bomberman arenas! Use the Find Arenas verb to jump to them.</span>")
return
to_chat(src, "<span class='notice'>Pooling other ghosts for a bomberman arena...</span>")
if (!creating_arena)
new /datum/bomberman_arena(locate(250, 250, 2), pick("15x13 (2 players)","15x15 (4 players)","39x23 (10 players)"), src)
creating_arena = TRUE
return
to_chat(src, "<span class='notice'>There were unfortunatly no available arenas.</span>")