mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] allow precision item placement on casino table (#11689)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c5e6bc7d7e
commit
b8aa26f48c
@@ -22,10 +22,13 @@
|
||||
. = ..()
|
||||
AddElement(/datum/element/climbable)
|
||||
|
||||
/obj/structure/casino_table/attackby(obj/item/W, mob/user)
|
||||
if(item_place)
|
||||
user.drop_item(src.loc)
|
||||
return
|
||||
/obj/structure/casino_table/attackby(obj/item/W, mob/user, hit_modifier, click_parameters)
|
||||
if(!item_place)
|
||||
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
|
||||
name = "roulette"
|
||||
|
||||
Reference in New Issue
Block a user