The Great Device Resprite and Contained Sprite-ening (#20344)

Don't let the large file size scare you, it's just mostly splitting
stuff into contained sprites and putting them in the correct place.

Anyway, resprites most non-resprited devices in devices.dmi, and puts
them in contained sprites.
Also puts any related /obj/item/device into contained sprites too.
That's basically the long and short of it.
This commit is contained in:
Wowzewow (Wezzy)
2025-01-24 12:16:30 +00:00
committed by GitHub
parent e9fd65e0af
commit e7232d04fc
188 changed files with 319 additions and 355 deletions
+2 -2
View File
@@ -127,7 +127,7 @@
if(!underlays.len)
underlays += image(firstaid_item.icon, firstaid_item.icon_state)
var/matrix/M = matrix()
var/image/ha_image = image('icons/obj/device.dmi', "health")
var/image/ha_image = image('icons/obj/item/device/healthanalyzer.dmi', "health")
M.Translate(5, 0)
ha_image.transform = M
underlays += ha_image
@@ -376,7 +376,7 @@
to_chat(user, SPAN_NOTICE("You add the health sensor to [src]."))
name = "first-aid/robot arm/health analyzer assembly"
var/matrix/M = matrix()
var/image/ha_image = image('icons/obj/device.dmi', "health")
var/image/ha_image = image('icons/obj/item/device/healthanalyzer.dmi', "health")
M.Translate(5, 0)
ha_image.transform = M
underlays += ha_image
@@ -3,6 +3,7 @@
//
/obj/item/device/robotanalyzer
name = "cyborg analyzer"
icon = 'icons/obj/item/device/robotanalyzer.dmi'
icon_state = "robotanalyzer"
item_state = "analyzer"
desc = "A hand-held scanner able to diagnose robotic injuries."
@@ -109,6 +110,7 @@
/obj/item/device/robotanalyzer/augment
name = "retractable cyborg analyzer"
desc = "An scanner implanted directly into the hand, popping through the finger. This scanner can diagnose robotic injuries."
icon = 'icons/obj/item/device/robotanalyzer.dmi'
icon_state = "robotanalyzer"
item_state = "analyzer"
slot_flags = null
@@ -3,7 +3,7 @@
/obj/item/matter_decompiler
name = "matter decompiler"
desc = "Eating trash, bits of glass, or other debris will replenish your stores."
icon = 'icons/obj/device.dmi'
icon = 'icons/obj/item/gripper.dmi'
icon_state = "decompiler"
var/is_decompiling = FALSE
@@ -3,7 +3,7 @@
/obj/item/gripper
name = "magnetic gripper"
desc = "A simple grasping tool specialized in construction and engineering work."
icon = 'icons/obj/device.dmi'
icon = 'icons/obj/item/gripper.dmi'
icon_state = "gripper"
item_flags = ITEM_FLAG_NO_BLUDGEON
@@ -3,7 +3,7 @@
desc = "A phoron-enhanced induction charger hooked up to its attached stationbound's internal cell."
desc_extended = "Harnessing the energy potential found in phoron structures, NanoTrasen engineers have created a portable device capable of highly efficient wireless charging. The expense and limit of energy output of using this method of charging prevents it from being used on a large scale, being far outclassed by Phoron-Supermatter charging systems."
desc_info = "Click on an adjacent object that contains or is a power cell to attempt to find and charge it. After a successful charge, the inductive charger recharge in a few minutes. The amount transfered can be adjusted by alt clicking it."
icon = 'icons/obj/item/tools/inductive_charger.dmi'
icon = 'icons/obj/item/inductive_charger.dmi'
icon_state = "inductive_charger"
item_state = "inductive_charger"
item_flags = ITEM_FLAG_HELD_MAP_TEXT
@@ -2,7 +2,7 @@
/obj/item/borg/combat/shield
name = "personal shielding"
desc = "A powerful experimental module that turns aside or absorbs incoming attacks at the cost of charge."
icon = 'icons/obj/device.dmi'
icon = 'icons/obj/item/device/chameleon.dmi'
icon_state = "shield1" //placeholder for now // four fucking years alberyk. FOUR
var/shield_level = 0.5 //Percentage of damage absorbed by the shield.
@@ -6,6 +6,8 @@
desc = "Small device which allows rapid deployment and removal of inflatables."
icon = 'icons/obj/item/inflatables.dmi'
icon_state = "inf_deployer"
item_state = "RPED" //inhands
contained_sprite = TRUE
w_class = WEIGHT_CLASS_NORMAL
var/deploying = FALSE
var/max_walls = 10