[MIRROR] allow precision item placement on casino table (#11689)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-18 17:09:00 -07:00
committed by GitHub
parent c5e6bc7d7e
commit b8aa26f48c

View File

@@ -22,10 +22,13 @@
. = ..() . = ..()
AddElement(/datum/element/climbable) AddElement(/datum/element/climbable)
/obj/structure/casino_table/attackby(obj/item/W, mob/user) /obj/structure/casino_table/attackby(obj/item/W, mob/user, hit_modifier, click_parameters)
if(item_place) if(!item_place)
user.drop_item(src.loc) return
return if(user.unEquip(W, 0, loc) && user.client?.prefs?.read_preference(/datum/preference/toggle/precision_placement))
auto_align(W, click_parameters) // Precisely place item like this is a normal table
return
user.drop_item(loc)
/obj/structure/casino_table/roulette_table /obj/structure/casino_table/roulette_table
name = "roulette" name = "roulette"