diff --git a/code/controllers/configuration_vr.dm b/code/controllers/configuration_vr.dm new file mode 100644 index 0000000000..3145264992 --- /dev/null +++ b/code/controllers/configuration_vr.dm @@ -0,0 +1,32 @@ +// +// Lets read our settings from the configuration file on startup too! +// + +/hook/startup/proc/read_vs_config() + var/list/Lines = file2list("config/config.txt") + for(var/t in Lines) + if(!t) continue + + t = trim(t) + if (length(t) == 0) + continue + else if (copytext(t, 1, 2) == "#") + continue + + var/pos = findtext(t, " ") + var/name = null + var/value = null + + if (pos) + name = lowertext(copytext(t, 1, pos)) + value = copytext(t, pos + 1) + else + name = lowertext(t) + + if (!name) + continue + + switch (name) + if ("items_survive_digestion") + config.items_survive_digestion = 1 + return 1 diff --git a/vorestation.dme b/vorestation.dme index 2199eb0645..47d9547005 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -134,6 +134,7 @@ #include "code\controllers\autotransfer.dm" #include "code\controllers\communications.dm" #include "code\controllers\configuration.dm" +#include "code\controllers\configuration_vr.dm" #include "code\controllers\emergency_shuttle_controller.dm" #include "code\controllers\hooks-defs.dm" #include "code\controllers\hooks.dm"