mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
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:
co-authored by
Fluffy
parent
a217abf9ba
commit
c46e21595b
@@ -29,11 +29,30 @@ Firing pins as a rule can't be removed without replacing them, blame a really sh
|
||||
.=..()
|
||||
if(istype(loc, /obj/item/gun))
|
||||
gun = loc
|
||||
update_icon()
|
||||
|
||||
/obj/item/device/firing_pin/pickup(mob/user)
|
||||
..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/device/firing_pin/dropped(mob/user)
|
||||
..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/device/firing_pin/attack_hand()
|
||||
..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/firing_pin/update_icon()
|
||||
var/matrix/tf = matrix()
|
||||
if(istype(loc, /obj/item/storage))
|
||||
tf.Turn(-90) //Vertical for storing compactly
|
||||
tf.Translate(-1, 0) //Could do this with pixel_x but let's just update the appearance once.
|
||||
transform = tf
|
||||
|
||||
/obj/item/device/firing_pin/proc/examine_info() // Part of what allows people to see what firing mode their wireless control pin is in. Returns nothing here if there's no wireless-control firing pin.
|
||||
return
|
||||
|
||||
|
||||
/obj/item/device/firing_pin/afterattack(atom/target, mob/user, proximity_flag)
|
||||
if(proximity_flag)
|
||||
if(istype(target, /obj/item/gun))
|
||||
|
||||
Reference in New Issue
Block a user