mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Midround bomberman (#21520)
* Progress * Whoops * Test * Fixes * Landmarks and shit * Additional fixes * Duh
This commit is contained in:
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user