Files
b4a124e557 [IDB IGNORE] cyborg refactor: icons, chassis, modules base (#6929)
- separates the composition of cyborgs into modules, iconsets, chassis,
upgrades
- modules / chassis atm can provide items, so can upgrades; in the
future we will want to probably generalize the item API a bit so
components can work
- chassis now can (unimplemented) easily be made to give different stats
- reorganizes all the cyborg sprites
- adds generalized item mounts with redirection support and tears out
legacy cyborg items
- entirely rebalances modules & writes some new lawsets in for future
use

---------

Co-authored-by: silicons <silicons@silicons.dev>
2026-01-13 18:39:38 +00:00

19 lines
648 B
Plaintext

//* This file is explicitly licensed under the MIT license. *//
//* Copyright (c) 2025 Citadel Station Developers *//
/datum/inventory/robot
held_items_row_mode = 3
held_items_suppress_buttons = TRUE
held_items_use_robot_icon = TRUE
// TODO: overriding this is a little bad but what the fuck ever man we'll have another inventory rewrite soon
/datum/inventory/robot/put_in_hand(obj/item/I, index, inv_op_flags)
if(inv_op_flags & INV_OP_FORCE)
return ..()
var/mob/living/silicon/robot/maybe_robot = owner
if(!istype(maybe_robot))
return ..()
if(!(I in maybe_robot.robot_inventory?.provided_items))
return FALSE
return ..()