mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
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:
@@ -9,9 +9,8 @@
|
||||
/obj/item/ore_detector
|
||||
name = "ore detector"
|
||||
desc = "A device capable of locating and displaying ores to the average untrained hole explorer."
|
||||
icon = 'icons/obj/item/tools/ore_scanner.dmi'
|
||||
icon_state = "ore_scanner"
|
||||
item_state = "ore_scanner"
|
||||
icon = 'icons/obj/item/adv_mining_scanner.dmi'
|
||||
icon_state = "advmining0"
|
||||
w_class = WEIGHT_CLASS_SMALL
|
||||
slot_flags = SLOT_BELT
|
||||
force = 1
|
||||
@@ -42,7 +41,7 @@
|
||||
return ..()
|
||||
|
||||
/obj/item/ore_detector/update_icon()
|
||||
icon_state = "ore_scanner[active ? "-active" : ""]"
|
||||
icon_state = "advmining[active]"
|
||||
|
||||
/obj/item/ore_detector/attack_self(mob/user)
|
||||
ui_interact(user)
|
||||
@@ -130,7 +129,7 @@
|
||||
found_ores = TRUE
|
||||
|
||||
if(found_ores)
|
||||
var/image/ore_ping = image(icon = 'icons/obj/item/tools/ore_scanner.dmi', icon_state = "signal_overlay", loc = anchor, layer = UNDER_HUD_LAYER)
|
||||
var/image/ore_ping = image(icon = 'icons/obj/item/adv_mining_scanner.dmi', icon_state = "signal_overlay", loc = anchor, layer = UNDER_HUD_LAYER)
|
||||
ore_ping.appearance_flags |= KEEP_APART|RESET_ALPHA|RESET_COLOR|RESET_TRANSFORM
|
||||
ore_ping.pixel_x = rand(-6, 6)
|
||||
ore_ping.pixel_y = rand(-6, 6)
|
||||
|
||||
Reference in New Issue
Block a user