mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
Fix a bunch of issues and runtimes (#17951)
* selection target * ugh * fix deadmin * larger * fix paper icons * those are inverted * don't miss that * fix all * point transfer * add nostrip flag to items * un.... teppi * . * end life proc after qdel * this could be null in very rare cases * this has a lot of sleeps, someday should be refactored and check for qdeleted * needs to be an object * qdel check this * use the rsc properly * wtf? * . * fix narrate * . * push * inform user, null it * . * can be null * fix maint lurkers * . * spans * . * fix that too * urg * fix distillery * don't wrap them * needs usr * Update cash_register.dm * quick hook cleanup * lots of fixes * . * clean that up for reasons
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
* @param hook Identifier of the hook to call.
|
||||
* @returns 1 if all hooked code runs successfully, 0 otherwise.
|
||||
*/
|
||||
/proc/callHook(hook, list/args=null)
|
||||
/proc/callHook(hook, list/arguments=null)
|
||||
var/hook_path = text2path("/hook/[hook]")
|
||||
if(!hook_path)
|
||||
error("Invalid hook '/hook/[hook]' called.")
|
||||
@@ -32,7 +32,7 @@
|
||||
var/requester = new hook_path
|
||||
var/status = 1
|
||||
for(var/P in typesof("[hook_path]/proc"))
|
||||
if(!call(requester, P)(arglist(args)))
|
||||
if(!call(requester, P)(arglist(arguments)))
|
||||
error("Hook '[P]' failed or runtimed.")
|
||||
status = 0
|
||||
|
||||
|
||||
@@ -118,13 +118,13 @@ SUBSYSTEM_DEF(xenoarch)
|
||||
artifact_turf.artifact_find = new()
|
||||
|
||||
/// This is the proc that is used when a Z level runs out of artifacts. This means you have 'completed' your job and now you get bonus goodies to keep you occupied.
|
||||
/datum/controller/subsystem/xenoarch/proc/continual_generation(var/mob/living/caller)
|
||||
/datum/controller/subsystem/xenoarch/proc/continual_generation(var/mob/living/user)
|
||||
|
||||
/// So, to preface this, I had to do a lot of testing with this to ensure it wouldn't cause mass lag and that it properly functioned.
|
||||
/// At first, I tried to make it scan mineral in the user's Z. There's not really any preexisting functionality for this that I could find, so that was a negative.
|
||||
/// Next, I saw what would happen if it did 'in world' and then went 'if M.z != caller.z continue' and that caused...A lot of lag. For a long time.
|
||||
/// Next, I saw what would happen if it did 'in world' and then went 'if M.z != user.z continue' and that caused...A lot of lag. For a long time.
|
||||
/// This range(100) was for me was completely lagless. It gives a good amount of artifacts to keep digging and keep archeo working so they don't 'run out' of things to do.
|
||||
for(var/turf/simulated/mineral/M in range(100, caller))
|
||||
for(var/turf/simulated/mineral/M in range(100, user))
|
||||
|
||||
if(!M.density)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user