Files
Fluffy b8902e2e16 Runtime map now loads in ~11 seconds instead of ~40, sped up various other things (#19957)
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.
2024-10-06 21:31:01 +00:00

73 lines
1.6 KiB
Plaintext

/obj/item/storage/box/fancy/csi_markers
name = "crime scene markers box"
desc = "A cardboard box for crime scene marker cards."
icon = 'icons/obj/forensics.dmi'
icon_state = "markerbox"
icon_type = "marker"
w_class = WEIGHT_CLASS_TINY
storage_slots = 7
can_hold = list(/obj/item/csi_marker)
starts_with = list(
/obj/item/csi_marker/n1 = 1,
/obj/item/csi_marker/n2 = 1,
/obj/item/csi_marker/n3 = 1,
/obj/item/csi_marker/n4 = 1,
/obj/item/csi_marker/n5 = 1,
/obj/item/csi_marker/n6 = 1,
/obj/item/csi_marker/n7 = 1
)
/obj/item/csi_marker
name = "crime scene marker"
desc = "Plastic cards used to mark points of interests on the scene. Just like in the holoshows!"
icon = 'icons/obj/forensics.dmi'
icon_state = "card1"
drop_sound = 'sound/items/drop/card.ogg'
pickup_sound = 'sound/items/pickup/card.ogg'
w_class = WEIGHT_CLASS_TINY
item_flags = ITEM_FLAG_NO_BLUDGEON
randpixel = 1
layer = ABOVE_HUMAN_LAYER //so you can mark bodies
var/number = 1
/obj/item/csi_marker/afterattack(atom/A, mob/user, proximity)
if(!proximity)
return
if(!istype(A, /obj/item/storage))
if(!user.Adjacent(A))
return
if(A.density)
return
user.drop_from_inventory(src, get_turf(A))
return
/obj/item/csi_marker/Initialize(mapload)
. = ..()
desc += " This one is marked with a [number]."
update_icon()
/obj/item/csi_marker/update_icon()
icon_state = "card[clamp(number,1,7)]"
/obj/item/csi_marker/n1
number = 1
/obj/item/csi_marker/n2
number = 2
/obj/item/csi_marker/n3
number = 3
/obj/item/csi_marker/n4
number = 4
/obj/item/csi_marker/n5
number = 5
/obj/item/csi_marker/n6
number = 6
/obj/item/csi_marker/n7
number = 7