mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 15:38:02 +01:00
JSON Logging Refactor (#18252)
* First pass * fixes * more fixes * num2hex length changes * pass 2 * fixed warning * looc log fix * . * update tgui * . * . * . * . * perttier * cleanup * . * . * fix token * no * . * . * . * , * modsay eventsay * . --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -28,13 +28,13 @@
|
||||
plantname = planttype
|
||||
|
||||
if(!plantname)
|
||||
log_debug("Plantname not provided and and [src] requires it at [x],[y],[z]")
|
||||
log_runtime("Plantname not provided and [src] requires it at [x],[y],[z]")
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
seed = SSplants.seeds[plantname]
|
||||
|
||||
if(!seed)
|
||||
log_debug("Plant name '[plantname]' does not exist and [src] requires it at [x],[y],[z]")
|
||||
log_runtime("Plant name '[plantname]' does not exist and [src] requires it at [x],[y],[z]")
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
name = "[seed.seed_name]"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/datum/seed/proc/diverge_mutate_gene(var/decl/plantgene/G, var/turf/T)
|
||||
if(!istype(G))
|
||||
log_debug("Attempted to mutate [src] with a non-plantgene var.")
|
||||
log_runtime("Attempted to mutate [src] with a non-plantgene var.")
|
||||
return src
|
||||
|
||||
var/datum/seed/S = diverge() //Let's not modify all of the seeds.
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
parent = newparent
|
||||
|
||||
if(!SSplants)
|
||||
to_world(span_danger("Plant controller does not exist and [src] requires it. Aborting."))
|
||||
to_chat(world, span_danger("Plant controller does not exist and [src] requires it. Aborting."))
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
if(!istype(newseed))
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
return
|
||||
var/atom/movable/AM = WF.resolve()
|
||||
if(isnull(AM))
|
||||
log_debug("DEBUG: HasProximity called without reference on [src].")
|
||||
log_runtime("DEBUG: HasProximity called without reference on [src].")
|
||||
return
|
||||
|
||||
if(!is_mature() || seed.get_trait(TRAIT_SPREAD) != 2)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
if(!seed.growth_stages)
|
||||
seed.update_growth_stages()
|
||||
if(!seed.growth_stages)
|
||||
to_world(span_danger("Seed type [seed.get_trait(TRAIT_PLANT_ICON)] cannot find a growth stage value."))
|
||||
to_chat(world, span_danger("Seed type [seed.get_trait(TRAIT_PLANT_ICON)] cannot find a growth stage value."))
|
||||
return
|
||||
var/overlay_stage = 1
|
||||
if(age >= seed.get_trait(TRAIT_MATURATION))
|
||||
|
||||
Reference in New Issue
Block a user