mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
Attack chain migration: structures. (#30365)
* Attack chain migration: structures. * whoops * wth
This commit is contained in:
committed by
GitHub
parent
cd7b4e7292
commit
3208049a8a
@@ -24,9 +24,11 @@
|
||||
///What stacks can be used to make the table, and if it will result in a unique table
|
||||
var/list/restrict_table_types = list() //ex: list(/obj/item/stack/tile/carpet = /obj/structure/table/wood/poker, /obj/item/stack/sheet/wood = /obj/item/stack/sheet/wood::table_type), carpet will make poker table, wood will result in standard table_type. If the list is empty, any material can be used for its default table_type.
|
||||
|
||||
/obj/structure/table_frame/attackby__legacy__attackchain(obj/item/I, mob/user, params)
|
||||
if(!try_make_table(I, user))
|
||||
return ..()
|
||||
/obj/structure/table_frame/item_interaction(mob/living/user, obj/item/I, list/modifiers)
|
||||
if(try_make_table(I, user))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
return ..()
|
||||
|
||||
///Try to make a table with the item used to attack. FALSE if you can't make a table and should attack. TRUE does not necessarily mean a table was made.
|
||||
/obj/structure/table_frame/proc/try_make_table(obj/item/stack/stack, mob/user)
|
||||
|
||||
Reference in New Issue
Block a user