mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 02:25:06 +01:00
allow precision item placement on casino table (#18525)
* allow precision on casino table * need these
This commit is contained in:
@@ -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