mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +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)
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user