mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-09 00:42:34 +00:00
Runtime map now has a bunch of new areas / items with often-tested stuffs, and some hard-to-put-at-runtime stuffs. Runtime map jobs now are positioned to make it faster to reach the aforementioned often-tested stuffs. Runtime map doesn't generate an overmap anymore by default, which speeds up the process. Runtime map now loads in ~11 seconds instead of ~40 seconds as it was before. Updated the maploader to be faster in parsing maps. Bapi is not engaged anymore if we're only measuring the map size, which speeds up the process. In fastboot we do not generate the codexes anymore, which speeds up the process. In fastboot and if exoplanets and away sites are not enabled, we do not parse the map templates anymore, which speeds up the process. Updated the icon smoothing to be faster. Optimized cargo area code. Other optimizations.
120 lines
3.2 KiB
Plaintext
120 lines
3.2 KiB
Plaintext
/obj/effect/decal/cleanable/draftingchalk
|
|
name = "chalk marking"
|
|
desc = "A line drawn in chalk."
|
|
icon = 'icons/obj/smooth/chalkline-smooth.dmi'
|
|
icon_state = "preview"
|
|
color = "#FFFFFF"
|
|
anchored = TRUE
|
|
smoothing_flags = SMOOTH_TRUE
|
|
|
|
/obj/effect/decal/cleanable/draftingchalk/Initialize(mapload)
|
|
. = ..()
|
|
if (mapload)
|
|
QUEUE_SMOOTH(src)
|
|
else
|
|
smooth_icon()
|
|
for (var/obj/effect/decal/cleanable/draftingchalk/C in orange(1, src))
|
|
C.smooth_icon()
|
|
|
|
/obj/item/pen/drafting
|
|
name = "white drafting chalk"
|
|
desc = "A piece of white chalk for marking areas of floor."
|
|
icon = 'icons/obj/storage/fancy/crayon.dmi'
|
|
icon_state = "dchalk"
|
|
color = "#FFFFFF"
|
|
var/colorName = "whitec"
|
|
|
|
/obj/item/pen/drafting/attack_self(var/mob/user)
|
|
return
|
|
|
|
/obj/item/pen/drafting/afterattack(turf/target, mob/user, proximity)
|
|
if (!proximity || !istype(target, /turf/simulated) || target.density || target.is_hole)
|
|
return
|
|
|
|
to_chat(user, "You start marking a line on [target].")
|
|
|
|
if (!do_after(user, 1 SECONDS, target))
|
|
return
|
|
|
|
for (var/obj/effect/decal/cleanable/draftingchalk/C in target)
|
|
qdel(C)
|
|
|
|
to_chat(user, "You mark a line on [target].")
|
|
|
|
var/obj/effect/decal/cleanable/draftingchalk/C = new(target)
|
|
C.color = color
|
|
target.add_fingerprint(user)
|
|
|
|
/obj/item/pen/drafting/red
|
|
name = "red drafting chalk"
|
|
desc = "A piece of red chalk for marking areas of floor."
|
|
color = "#E75344"
|
|
colorName = "redc"
|
|
|
|
/obj/effect/decal/cleanable/draftingchalk/red
|
|
desc = "A line drawn in a red chalk."
|
|
color = "#E75344"
|
|
|
|
/obj/item/pen/drafting/yellow
|
|
name = "yellow drafting chalk"
|
|
desc = "A piece of yellow chalk for marking areas of floor."
|
|
color = "#E1CB47"
|
|
colorName = "yellowc"
|
|
|
|
/obj/effect/decal/cleanable/draftingchalk/yellow
|
|
desc = "A line drawn in a yellow chalk."
|
|
color = "#E1CB47"
|
|
|
|
/obj/item/pen/drafting/green
|
|
name = "green drafting chalk"
|
|
desc = "A piece of yellow chalk for marking areas of floor."
|
|
color = "#6CD48F"
|
|
colorName = "green"
|
|
|
|
/obj/effect/decal/cleanable/draftingchalk/green
|
|
desc = "A line drawn in a green chalk."
|
|
color = "#6CD48F"
|
|
|
|
/obj/item/pen/drafting/blue
|
|
name = "blue drafting chalk"
|
|
desc = "A piece of blue chalk for marking areas of floor."
|
|
color = "#9FC8F7"
|
|
colorName = "bluec"
|
|
|
|
/obj/effect/decal/cleanable/draftingchalk/blue
|
|
desc = "A line drawn in a blue chalk."
|
|
color = "#9FC8F7"
|
|
|
|
/obj/item/pen/drafting/purple
|
|
name = "purple drafting chalk"
|
|
desc = "A piece of purple chalk for marking areas of floor."
|
|
color = "#a489c2"
|
|
colorName = "purplec"
|
|
|
|
/obj/effect/decal/cleanable/draftingchalk/purple
|
|
desc = "A line drawn in a purple chalk."
|
|
color = "#a489c2"
|
|
|
|
/obj/item/storage/box/fancy/crayons/chalkbox
|
|
name = "box of drafting chalk"
|
|
desc = "A box of drafting chalk for drafting floor plans."
|
|
icon_state = "chalkbox"
|
|
icon_type = "chalk"
|
|
can_hold = list(
|
|
/obj/item/pen/drafting
|
|
)
|
|
|
|
/obj/item/storage/box/fancy/crayons/chalkbox/fill()
|
|
new /obj/item/pen/drafting/red(src)
|
|
new /obj/item/pen/drafting(src)
|
|
new /obj/item/pen/drafting/yellow(src)
|
|
new /obj/item/pen/drafting/green(src)
|
|
new /obj/item/pen/drafting/blue(src)
|
|
new /obj/item/pen/drafting/purple(src)
|
|
update_icon()
|
|
|
|
/obj/item/storage/box/fancy/crayons/chalkbox/update_icon()
|
|
ClearOverlays()
|
|
for(var/obj/item/pen/drafting/chalk in contents)
|
|
AddOverlays("[chalk.colorName]")
|