mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 03:26:31 +01:00
Merge branch 'master' of https://github.com/tgstation/-tg-station into turfs
Conflicts: code/game/objects/explosion.dm code/game/objects/items/stacks/sheets/mineral.dm code/game/objects/structures/girders.dm code/game/objects/structures/grille.dm code/game/turfs/turf.dm code/modules/events/spacevine.dm code/modules/events/wormholes.dm code/modules/mining/mine_items.dm code/modules/mob/living/silicon/robot/robot.dm
This commit is contained in:
@@ -33,10 +33,10 @@ var/list/VVckey_edit = list("key", "ckey")
|
||||
var/class = "text"
|
||||
if(src.holder && src.holder.marked_datum)
|
||||
class = input("What kind of variable?","Variable Type") as null|anything in list("text",
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default","marked datum ([holder.marked_datum.type])")
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default", "new atom", "new datum", "marked datum ([holder.marked_datum.type])")
|
||||
else
|
||||
class = input("What kind of variable?","Variable Type") as null|anything in list("text",
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default")
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default", "new atom", "new datum")
|
||||
|
||||
if(!class)
|
||||
return
|
||||
@@ -72,6 +72,14 @@ var/list/VVckey_edit = list("key", "ckey")
|
||||
if("marked datum")
|
||||
var_value = holder.marked_datum
|
||||
|
||||
if("new atom")
|
||||
var/type = input("Enter type:","Type") as null|anything in typesof(/obj,/mob,/area,/turf)
|
||||
var_value = new type()
|
||||
|
||||
if("new datum")
|
||||
var/type = input("Enter type:","Type") as null|anything in (typesof(/datum)-typesof(/obj,/mob,/area,/turf))
|
||||
var_value = new type()
|
||||
|
||||
if(!var_value) return
|
||||
|
||||
if(istext(var_value))
|
||||
@@ -90,10 +98,10 @@ var/list/VVckey_edit = list("key", "ckey")
|
||||
var/class = "text"
|
||||
if(src.holder && src.holder.marked_datum)
|
||||
class = input("What kind of variable?","Variable Type") as null|anything in list("text",
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default","marked datum ([holder.marked_datum.type])")
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default", "new atom", "new datum","marked datum ([holder.marked_datum.type])")
|
||||
else
|
||||
class = input("What kind of variable?","Variable Type") as null|anything in list("text",
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default")
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default", "new atom", "new datum")
|
||||
|
||||
if(!class)
|
||||
return
|
||||
@@ -129,6 +137,14 @@ var/list/VVckey_edit = list("key", "ckey")
|
||||
if("marked datum")
|
||||
var_value = holder.marked_datum
|
||||
|
||||
if("new atom")
|
||||
var/type = input("Enter type:","Type") as null|anything in typesof(/obj,/mob,/area,/turf)
|
||||
var_value = new type()
|
||||
|
||||
if("new datum")
|
||||
var/type = input("Enter type:","Type") as null|anything in (typesof(/datum)-typesof(/obj,/mob,/area,/turf))
|
||||
var_value = new type()
|
||||
|
||||
if(!var_value) return
|
||||
|
||||
if(istext(var_value))
|
||||
@@ -267,10 +283,10 @@ var/list/VVckey_edit = list("key", "ckey")
|
||||
var/class = "text"
|
||||
if(src.holder && src.holder.marked_datum)
|
||||
class = input("What kind of variable?","Variable Type",default) as null|anything in list("text",
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default","marked datum ([holder.marked_datum.type])", "DELETE FROM LIST")
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default", "new atom", "new datum","marked datum ([holder.marked_datum.type])", "DELETE FROM LIST")
|
||||
else
|
||||
class = input("What kind of variable?","Variable Type",default) as null|anything in list("text",
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default", "DELETE FROM LIST")
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default", "new atom", "new datum", "DELETE FROM LIST")
|
||||
|
||||
if(!class)
|
||||
return
|
||||
@@ -372,6 +388,22 @@ var/list/VVckey_edit = list("key", "ckey")
|
||||
else
|
||||
L[L.Find(variable)] = new_var
|
||||
|
||||
if("new atom")
|
||||
var/type = input("Enter type:","Type") as null|anything in typesof(/obj,/mob,/area,/turf)
|
||||
new_var = new type()
|
||||
if(assoc)
|
||||
L[assoc_key] = new_var
|
||||
else
|
||||
L[L.Find(variable)] = new_var
|
||||
|
||||
if("new datum")
|
||||
var/type = input("Enter type:","Type") as null|anything in (typesof(/datum)-typesof(/obj,/mob,/area,/turf))
|
||||
new_var = new type()
|
||||
if(assoc)
|
||||
L[assoc_key] = new_var
|
||||
else
|
||||
L[L.Find(variable)] = new_var
|
||||
|
||||
O.on_varedit(objectvar)
|
||||
world.log << "### ListVarEdit by [src]: [O.type] [objectvar]: [original_var]=[new_var]"
|
||||
log_admin("[key_name(src)] modified [original_name]'s [objectvar]: [original_var]=[new_var]")
|
||||
@@ -541,10 +573,10 @@ var/list/VVckey_edit = list("key", "ckey")
|
||||
|
||||
if(src.holder && src.holder.marked_datum)
|
||||
class = input("What kind of variable?","Variable Type",default) as null|anything in list("text",
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default","marked datum ([holder.marked_datum.type])")
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default", "new atom", "new datum", "marked datum ([holder.marked_datum.type])")
|
||||
else
|
||||
class = input("What kind of variable?","Variable Type",default) as null|anything in list("text",
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default")
|
||||
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default", "new atom", "new datum")
|
||||
|
||||
if(!class)
|
||||
return
|
||||
@@ -638,6 +670,18 @@ var/list/VVckey_edit = list("key", "ckey")
|
||||
if("marked datum")
|
||||
O.vars[variable] = holder.marked_datum
|
||||
|
||||
if("new atom")
|
||||
var/type = input("Enter type:","Type") as null|anything in typesof(/obj,/mob,/area,/turf)
|
||||
var/var_new = new type()
|
||||
if(var_new==null) return
|
||||
O.vars[variable] = var_new
|
||||
|
||||
if("new datum")
|
||||
var/type = input("Enter type:","Type") as null|anything in (typesof(/datum)-typesof(/obj,/mob,/area,/turf))
|
||||
var/var_new = new type()
|
||||
if(var_new==null) return
|
||||
O.vars[variable] = var_new
|
||||
|
||||
O.on_varedit(variable)
|
||||
world.log << "### VarEdit by [src]: [O.type] [variable]=[html_encode("[O.vars[variable]]")]"
|
||||
log_admin("[key_name(src)] modified [original_name]'s [variable] to [O.vars[variable]]")
|
||||
|
||||
@@ -7,8 +7,13 @@ var/sound/admin_sound
|
||||
if(!check_rights(R_SOUNDS))
|
||||
return
|
||||
|
||||
admin_sound = sound(S, repeat = 0, wait = 1, channel = SOUND_CHANNEL_ADMIN)
|
||||
|
||||
var/sound/admin_sound = new()
|
||||
admin_sound.file = S
|
||||
admin_sound.priority = 250
|
||||
admin_sound.channel = SOUND_CHANNEL_ADMIN
|
||||
admin_sound.wait = 1
|
||||
admin_sound.repeat = 0
|
||||
admin_sound.status = SOUND_UPDATE|SOUND_STREAM
|
||||
|
||||
log_admin("[key_name(src)] played sound [S]")
|
||||
@@ -20,7 +25,8 @@ var/sound/admin_sound
|
||||
|
||||
for(var/mob/M in player_list)
|
||||
if(M.client.prefs.toggles & SOUND_MIDI)
|
||||
M << admin_sound
|
||||
var/vol = M.client.prefs.adminmusicvolume
|
||||
M << sound(admin_sound,channel = SOUND_CHANNEL_ADMIN,volume=vol)
|
||||
|
||||
admin_sound.frequency = 1 //Remove this line when the AFD stuff above is gone
|
||||
admin_sound.wait = 0
|
||||
|
||||
Reference in New Issue
Block a user