Ports over configuration controller (#16484)

* Ports over configuration controller

* Fixes

* Manual path fix

* patch (#16490)

* patch

* .

* SQL Fix

* Post-rebase fix

* Added missing examples

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Selis
2024-10-22 19:26:44 +02:00
committed by GitHub
co-authored by Kashargul
parent 25d323e8a8
commit 242fa3a66b
242 changed files with 3275 additions and 1257 deletions
+1 -1
View File
@@ -603,7 +603,7 @@
M.release_vore_contents(include_absorbed = TRUE, silent = TRUE)
//Drop all items into the belly.
if(config.items_survive_digestion)
if(CONFIG_GET(flag/items_survive_digestion))
for(var/obj/item/W in M)
if(istype(W, /obj/item/organ/internal/mmi_holder/posibrain))
var/obj/item/organ/internal/mmi_holder/MMI = W
+1 -1
View File
@@ -370,7 +370,7 @@
var/list/charlist = list()
var/default
for(var/i in 1 to config.character_slots)
for(var/i in 1 to CONFIG_GET(number/character_slots))
var/list/save_data = savefile.get_entry("character[i]", list())
var/name = save_data["real_name"]
var/nickname = save_data["nickname"]
+10 -10
View File
@@ -114,7 +114,7 @@
/obj/structure/smoletrack/attack_hand(mob/user)
if(user.a_intent == I_DISARM)
if(ismouse(usr) || (isobserver(usr) && !config.ghost_interaction))
if(ismouse(usr) || (isobserver(usr) && !CONFIG_GET(flag/ghost_interaction)))
return
to_chat(user, span_notice("[src] was dismantaled into bricks."))
playsound(src, 'sound/items/smolesmallbuild.ogg', 50, 1, -1, volume_channel = VOLUME_CHANNEL_MASTER)
@@ -128,7 +128,7 @@
set name = "Rotate Road Clockwise"
set category = "Object"
set src in oview(1)
if(ismouse(usr) || (isobserver(usr) && !config.ghost_interaction))
if(ismouse(usr) || (isobserver(usr) && !CONFIG_GET(flag/ghost_interaction)))
return
src.set_dir(turn(src.dir, 270))
@@ -136,7 +136,7 @@
set name = "Rotate Road Counter-Clockwise"
set category = "Object"
set src in oview(1)
if(ismouse(usr) || (isobserver(usr) && !config.ghost_interaction))
if(ismouse(usr) || (isobserver(usr) && !CONFIG_GET(flag/ghost_interaction)))
return
src.set_dir(turn(src.dir, 90))
@@ -145,7 +145,7 @@
set name = "Use Color Pieces"
set category = "Object"
set src in oview(1)
if(ismouse(usr) || (isobserver(usr) && !config.ghost_interaction))
if(ismouse(usr) || (isobserver(usr) && !CONFIG_GET(flag/ghost_interaction)))
return
var/new_color = input(usr, "Please select color.", "Paint Color", color) as color|null
color = new_color
@@ -157,7 +157,7 @@
set name = "Take Road Apart"
set category = "Object"
set src in oview(1)
if(ismouse(usr) || (isobserver(usr) && !config.ghost_interaction))
if(ismouse(usr) || (isobserver(usr) && !CONFIG_GET(flag/ghost_interaction)))
return
playsound(src, 'sound/items/smolesmallbuild.ogg', 50, 1, -1, volume_channel = VOLUME_CHANNEL_MASTER)
var/turf/simulated/floor/F = get_turf(src)
@@ -211,7 +211,7 @@
//makes it so buildings can be dismaintaled or GodZilla style attacked
/obj/structure/smolebuilding/attack_hand(mob/user)
if(user.a_intent == I_DISARM)
if(ismouse(usr) || (isobserver(usr) && !config.ghost_interaction))
if(ismouse(usr) || (isobserver(usr) && !CONFIG_GET(flag/ghost_interaction)))
return
to_chat(user, span_notice("[src] was dismantaled into bricks."))
playsound(src, 'sound/items/smolesmallbuild.ogg', 50, 1, -1, volume_channel = VOLUME_CHANNEL_MASTER)
@@ -222,7 +222,7 @@
else if (usr.a_intent == I_HURT)
if(ismouse(usr) || (isobserver(usr) && !config.ghost_interaction))
if(ismouse(usr) || (isobserver(usr) && !CONFIG_GET(flag/ghost_interaction)))
return
take_damage()
@@ -274,7 +274,7 @@
//get material from ruins
/obj/structure/smoleruins/attack_hand(mob/user)
if(user.a_intent == I_DISARM)
if(ismouse(usr) || (isobserver(usr) && !config.ghost_interaction))
if(ismouse(usr) || (isobserver(usr) && !CONFIG_GET(flag/ghost_interaction)))
return
to_chat(user, span_notice("[src] was dismantaled into bricks."))
playsound(src, 'sound/items/smolelargeunbuild.ogg', 50, 1, volume_channel = VOLUME_CHANNEL_MASTER)
@@ -305,7 +305,7 @@
set name = "Use Color Pieces"
set category = "Object"
set src in oview(1)
if(ismouse(usr) || (isobserver(usr) && !config.ghost_interaction))
if(ismouse(usr) || (isobserver(usr) && !CONFIG_GET(flag/ghost_interaction)))
return
var/new_color = input(usr, "Please select color.", "Paint Color", color) as color|null
color = new_color
@@ -316,7 +316,7 @@
set name = "Take Building Apart"
set category = "Object"
set src in oview(1)
if(ismouse(usr) || (isobserver(usr) && !config.ghost_interaction))
if(ismouse(usr) || (isobserver(usr) && !CONFIG_GET(flag/ghost_interaction)))
return
playsound(src, 'sound/items/smolesmallbuild.ogg', 50, 1, -1, volume_channel = VOLUME_CHANNEL_MASTER)
if(!isnull(loc))