mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 13:18:09 +01:00
[MIRROR] Staticpath [MDB ignore] (#12445)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
cc106f8032
commit
ba5224fbcb
@@ -529,7 +529,7 @@ ADMIN_VERB(deadmin, R_NONE, "DeAdmin", "Shed your admin powers.", ADMIN_CATEGORY
|
||||
message_admins(span_blue("[key_name_admin(usr)] told everyone to man up and deal with it."), 1)
|
||||
|
||||
ADMIN_VERB(give_spell, R_FUN, "Give Spell", ADMIN_VERB_NO_DESCRIPTION, ADMIN_CATEGORY_HIDDEN, mob/spell_recipient)
|
||||
var/spell/S = tgui_input_list(user, "Choose the spell to give to that guy", "ABRAKADABRA", typesof(/spell))
|
||||
var/datum/spell/S = tgui_input_list(user, "Choose the spell to give to that guy", "ABRAKADABRA", typesof(/datum/spell))
|
||||
if(!S)
|
||||
return
|
||||
spell_recipient.spell_list += new S
|
||||
@@ -539,7 +539,7 @@ ADMIN_VERB(give_spell, R_FUN, "Give Spell", ADMIN_VERB_NO_DESCRIPTION, ADMIN_CAT
|
||||
|
||||
ADMIN_VERB(remove_spell, R_FUN, "Remove Spell", ADMIN_VERB_NO_DESCRIPTION, ADMIN_CATEGORY_HIDDEN, mob/removal_target)
|
||||
var/list/target_spell_list = list()
|
||||
for(var/spell/spell in removal_target.spell_list)
|
||||
for(var/datum/spell/spell in removal_target.spell_list)
|
||||
target_spell_list[spell.name] = spell
|
||||
|
||||
if(!length(target_spell_list))
|
||||
@@ -548,7 +548,7 @@ ADMIN_VERB(remove_spell, R_FUN, "Remove Spell", ADMIN_VERB_NO_DESCRIPTION, ADMIN
|
||||
var/chosen_spell = tgui_input_list(user, "Choose the spell to remove from [removal_target]", "ABRAKADABRA", sortList(target_spell_list))
|
||||
if(isnull(chosen_spell))
|
||||
return
|
||||
var/spell/to_remove = target_spell_list[chosen_spell]
|
||||
var/datum/spell/to_remove = target_spell_list[chosen_spell]
|
||||
if(!istype(to_remove))
|
||||
return
|
||||
|
||||
|
||||
@@ -1876,11 +1876,11 @@
|
||||
else if(href_list["vsc"])
|
||||
if(check_rights(R_ADMIN|R_SERVER|R_EVENT))
|
||||
if(href_list["vsc"] == "airflow")
|
||||
vsc.ChangeSettingsDialog(usr,vsc.settings)
|
||||
GLOB.vsc.ChangeSettingsDialog(usr,GLOB.vsc.settings)
|
||||
if(href_list["vsc"] == GAS_PHORON)
|
||||
vsc.ChangeSettingsDialog(usr,vsc.plc.settings)
|
||||
GLOB.vsc.ChangeSettingsDialog(usr,GLOB.vsc.plc.settings)
|
||||
if(href_list["vsc"] == "default")
|
||||
vsc.SetDefault(usr)
|
||||
GLOB.vsc.SetDefault(usr)
|
||||
|
||||
else if(href_list["toglang"])
|
||||
if(check_rights(R_SPAWN))
|
||||
|
||||
@@ -437,14 +437,14 @@ ADMIN_VERB(cmd_assume_direct_control, (R_DEBUG|R_ADMIN|R_EVENT), "Assume Direct
|
||||
|
||||
var/mob/living/carbon/human/H = target
|
||||
|
||||
var/decl/hierarchy/outfit/outfit = tgui_input_list(usr, "Select outfit.", "Select equipment.", outfits())
|
||||
var/datum/decl/hierarchy/outfit/outfit = tgui_input_list(usr, "Select outfit.", "Select equipment.", outfits())
|
||||
if(!outfit)
|
||||
return
|
||||
|
||||
feedback_add_details("admin_verb","SEQ")
|
||||
dressup_human(H, outfit, 1)
|
||||
|
||||
/proc/dressup_human(var/mob/living/carbon/human/H, var/decl/hierarchy/outfit/outfit)
|
||||
/proc/dressup_human(var/mob/living/carbon/human/H, var/datum/decl/hierarchy/outfit/outfit)
|
||||
if(!H || !outfit)
|
||||
return
|
||||
if(outfit.undress)
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
var/active_on_main_station = 0
|
||||
var/inactive_on_main_station = 0
|
||||
for(var/zone/zone in SSair.zones)
|
||||
for(var/datum/zone/zone in SSair.zones)
|
||||
var/turf/simulated/turf = locate() in zone.contents
|
||||
if(turf?.z in using_map.station_levels)
|
||||
if(zone.needs_update)
|
||||
|
||||
@@ -23,7 +23,7 @@ ADMIN_VERB(fix_atmos, (R_ADMIN|R_DEBUG|R_EVENT), "Fix Atmospherics Grief", "View
|
||||
to_chat(user, "\[2/5\] - All pipenets purged of gas.")
|
||||
|
||||
// Delete all zones.
|
||||
for(var/zone/Z in world)
|
||||
for(var/datum/zone/Z in world)
|
||||
Z.c_invalidate()
|
||||
|
||||
to_chat(user, "\[3/5\] - All ZAS Zones removed.")
|
||||
|
||||
@@ -187,7 +187,7 @@ GLOBAL_LIST_INIT(debug_verbs, list(
|
||||
/client/var/usedZAScolors = 0
|
||||
/client/var/list/image/ZAScolors = list()
|
||||
|
||||
/client/proc/recurse_zone(var/zone/Z, var/recurse_level =1)
|
||||
/client/proc/recurse_zone(var/datum/zone/Z, var/recurse_level =1)
|
||||
testZAScolors_zones += Z
|
||||
if(recurse_level > 10)
|
||||
return
|
||||
@@ -196,8 +196,8 @@ GLOBAL_LIST_INIT(debug_verbs, list(
|
||||
for(var/turf/T in Z.contents)
|
||||
images += image(yellow, T, "zasdebug", PLANE_ADMIN2) // CHOMPEDIT
|
||||
testZAScolors_turfs += T
|
||||
for(var/connection_edge/zone/edge in Z.edges)
|
||||
var/zone/connected = edge.get_connected_zone(Z)
|
||||
for(var/datum/connection_edge/zone/edge in Z.edges)
|
||||
var/datum/zone/connected = edge.get_connected_zone(Z)
|
||||
if(connected in testZAScolors_zones)
|
||||
continue
|
||||
recurse_zone(connected,recurse_level+1)
|
||||
@@ -232,14 +232,14 @@ GLOBAL_LIST_INIT(debug_verbs, list(
|
||||
for(var/turf/T in location.zone.contents)
|
||||
images += image(green, T,"zasdebug", PLANE_ADMIN2) // CHOMPEDIT
|
||||
testZAScolors_turfs += T
|
||||
for(var/connection_edge/zone/edge in location.zone.edges)
|
||||
var/zone/Z = edge.get_connected_zone(location.zone)
|
||||
for(var/datum/connection_edge/zone/edge in location.zone.edges)
|
||||
var/datum/zone/Z = edge.get_connected_zone(location.zone)
|
||||
testZAScolors_zones += Z
|
||||
for(var/turf/T in Z.contents)
|
||||
images += image(blue, T,"zasdebug",PLANE_ADMIN2) // CHOMPEDIT
|
||||
testZAScolors_turfs += T
|
||||
for(var/connection_edge/zone/z_edge in Z.edges)
|
||||
var/zone/connected = z_edge.get_connected_zone(Z)
|
||||
for(var/datum/connection_edge/zone/z_edge in Z.edges)
|
||||
var/datum/zone/connected = z_edge.get_connected_zone(Z)
|
||||
if(connected in testZAScolors_zones)
|
||||
continue
|
||||
recurse_zone(connected,1)
|
||||
|
||||
Reference in New Issue
Block a user