mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-21 12:17:40 +01:00
[MIRROR] mass refactor of holder checks (#11155)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
54d0d16826
commit
7161a6c22e
@@ -3,7 +3,7 @@
|
||||
set name = "Display Random Map"
|
||||
set desc = "Show the contents of a random map."
|
||||
|
||||
if(!holder) return
|
||||
if(!check_rights_for(src, R_HOLDER)) return
|
||||
|
||||
var/choice = tgui_input_list(usr, "Choose a map to display.", "Map Choice", random_maps)
|
||||
if(!choice)
|
||||
@@ -17,7 +17,7 @@
|
||||
set name = "Delete Random Map"
|
||||
set desc = "Delete a random map."
|
||||
|
||||
if(!holder) return
|
||||
if(!check_rights_for(src, R_HOLDER)) return
|
||||
|
||||
var/choice = tgui_input_list(usr, "Choose a map to delete.", "Map Choice", random_maps)
|
||||
if(!choice)
|
||||
@@ -34,7 +34,7 @@
|
||||
set name = "Create Random Map"
|
||||
set desc = "Create a random map."
|
||||
|
||||
if(!holder) return
|
||||
if(!check_rights_for(src, R_HOLDER)) return
|
||||
|
||||
var/map_datum = tgui_input_list(usr, "Choose a map to create.", "Map Choice", subtypesof(/datum/random_map))
|
||||
if(!map_datum)
|
||||
@@ -58,7 +58,7 @@
|
||||
set name = "Apply Random Map"
|
||||
set desc = "Apply a map to the game world."
|
||||
|
||||
if(!holder) return
|
||||
if(!check_rights_for(src, R_HOLDER)) return
|
||||
|
||||
var/choice = tgui_input_list(usr, "Choose a map to apply.", "Map Choice", random_maps)
|
||||
if(!choice)
|
||||
@@ -83,7 +83,7 @@
|
||||
set name = "Overlay Random Map"
|
||||
set desc = "Apply a map to another map."
|
||||
|
||||
if(!holder) return
|
||||
if(!check_rights_for(src, R_HOLDER)) return
|
||||
|
||||
var/choice = tgui_input_list(usr, "Choose a map as base.", "Map Choice", random_maps)
|
||||
if(!choice)
|
||||
|
||||
Reference in New Issue
Block a user