Storage Fix 2, Featuring Maths (#20535)

I had to unironically bust out my pen and paper for this bullshit and
magnifying tool to actually check if things were pixel perfect.

- bugfix: "Fixes storage box alignment and storage space UI to use
better maths."
- qol: "Tweaks IDs, IDs and firing pins now rotate 90 degrees when in
storage for easier clickability."
  - bugfix: "Fixes Item Tooltip toggle message."
- bugfix: "Fixes roundstart items in storage not showing item outlines."

Fixes #20529

---------

Signed-off-by: Wowzewow (Wezzy) <42310821+alsoandanswer@users.noreply.github.com>
Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
This commit is contained in:
Wowzewow (Wezzy)
2025-03-02 22:02:54 +00:00
committed by GitHub
co-authored by Fluffy
parent a217abf9ba
commit c46e21595b
15 changed files with 163 additions and 58 deletions
+3 -2
View File
@@ -771,7 +771,7 @@ SUBSYSTEM_DEF(jobs)
log_loadout("EIS/([H]): [items.len] items.")
var/obj/item/storage/B = locate() in H
if (B)
for (var/thing in items)
for(var/thing in items)
to_chat(H, SPAN_NOTICE("Placing \the [thing] in your [B.name]!"))
var/datum/gear/G = GLOB.gear_datums[thing]
var/metadata
@@ -782,7 +782,8 @@ SUBSYSTEM_DEF(jobs)
metadata = list()
G.spawn_item(B, metadata, H)
log_loadout("EIS/([H]): placed [thing] in [B].")
for(var/obj/item/I in B.contents)
I.in_storage = TRUE
else
to_chat(H, SPAN_DANGER("Failed to locate a storage object on your mob, either you spawned with no arms and no backpack or this is a bug."))
log_loadout("EIS/([H]): unable to equip; no storage.")