mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-22 04:39:05 +01:00
bugfix / tweaks (#6959)
This commit is contained in:
@@ -30,6 +30,11 @@
|
||||
var/request_type
|
||||
/// ergo: stack type, item type, tool function, etc. what this is depends on [step_type]
|
||||
/// limited autodetection is allowed.
|
||||
///
|
||||
/// allowed:
|
||||
/// * /datum/prototype/material path
|
||||
/// * /obj/item/stack path
|
||||
/// * /obj/item path
|
||||
var/request
|
||||
/// * stacks: amount
|
||||
/// * items: amount; if 0, we just apply the item to it
|
||||
@@ -157,11 +162,12 @@
|
||||
/datum/frame_step/proc/valid_interaction(datum/event_args/actor/actor, obj/item/using_tool, datum/frame2/frame_datum, obj/structure/frame2/frame)
|
||||
switch(request_type)
|
||||
if(FRAME_REQUEST_TYPE_INTERACT)
|
||||
return TRUE
|
||||
return isnull(using_tool)
|
||||
if(FRAME_REQUEST_TYPE_ITEM)
|
||||
return using_tool?.type == request
|
||||
if(FRAME_REQUEST_TYPE_STACK)
|
||||
return using_tool?.type == request
|
||||
var/obj/item/stack/using_stack = using_tool
|
||||
return using_stack.can_use_as_type(request)
|
||||
if(FRAME_REQUEST_TYPE_PROC)
|
||||
return FALSE // override this proc
|
||||
if(FRAME_REQUEST_TYPE_TOOL)
|
||||
|
||||
@@ -46,7 +46,7 @@ AUTO_FRAME_DATUM(/datum/frame2/fire_alarm, fire_alarm, 'icons/machinery/fire_ala
|
||||
steps = list(
|
||||
/datum/frame_step{
|
||||
request = /obj/item/stack/cable_coil;
|
||||
name = "unsecure circuit";
|
||||
name = "wire circuit";
|
||||
request_amount = 1;
|
||||
stage = "wired";
|
||||
direction = TOOL_DIRECTION_FORWARDS;
|
||||
|
||||
Reference in New Issue
Block a user