mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Ports table item autoalign from Bay (#6946)
Made it so items get their pixel x/y reset on pickup.
Thrown items now also get their pixel placement slightly randomized.
Tweaked the center of mass on a boatload of items to be more accurate to their sprite art.
Replaced a bunch of randomized pixel placement code into a unifying proc; randpixel_xy() that uses an item's randpixel var.
This commit is contained in:
@@ -62,14 +62,14 @@
|
||||
destroyed_event.unregister(buffer_object, src)
|
||||
buffer_object = null
|
||||
|
||||
/obj/item/device/multitool/resolve_attackby(atom/A, mob/user)
|
||||
/obj/item/device/multitool/resolve_attackby(atom/A, mob/user, var/click_parameters)
|
||||
if(!isobj(A))
|
||||
return ..(A, user)
|
||||
return ..(A, user, click_parameters)
|
||||
|
||||
var/obj/O = A
|
||||
var/datum/expansion/multitool/MT = LAZYACCESS(O.expansions, /datum/expansion/multitool)
|
||||
if(!MT)
|
||||
return ..(A, user)
|
||||
return ..(A, user, click_parameters)
|
||||
|
||||
user.AddTopicPrint(src)
|
||||
MT.interact(src, user)
|
||||
|
||||
Reference in New Issue
Block a user