mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Readies our borg stuff for next sync fixes.
-Fixes the default module icon missing from our _vr.dmi -Makes our custom modules enable ui_style_vr to pull the hud icon from our dmi instead. -Makes relogging etc not revert to default ui file if ui_style_vr is enabled for the borg. -Moves the clumsy VS edit borg reset stuff to a more appropriate place. -Adds the recently fixed attack anim offset fix and the ui_style_vr to the reset module.
This commit is contained in:
@@ -276,6 +276,8 @@ var/obj/screen/robot_inventory
|
||||
r.client.screen -= r.robot_modules_background
|
||||
|
||||
/mob/living/silicon/robot/update_hud()
|
||||
..()
|
||||
if(ui_style_vr) //VOREStation Edit
|
||||
hands.icon = 'icons/mob/screen1_robot_vr.dmi'
|
||||
if(modtype)
|
||||
hands.icon_state = lowertext(modtype)
|
||||
..()
|
||||
@@ -26,14 +26,10 @@
|
||||
|
||||
/obj/item/borg/upgrade/reset/action(var/mob/living/silicon/robot/R)
|
||||
if(..()) return 0
|
||||
R.pixel_x = initial(pixel_x) //VOREStation Edit
|
||||
R.pixel_y = initial(pixel_y) //VOREStation Edit
|
||||
R.dogborg = FALSE //VOREStation Edit
|
||||
R.wideborg = FALSE //VOREStation Edit
|
||||
R.uneq_all()
|
||||
R.modtype = initial(R.modtype)
|
||||
R.hands.icon_state = initial(R.hands.icon_state)
|
||||
R.icon = initial(R.icon) //VOREStation Edit - Dogborg reset tweak since separate file.
|
||||
|
||||
R.notify_ai(ROBOT_NOTIFICATION_MODULE_RESET, R.module.name)
|
||||
R.module.Reset(R)
|
||||
qdel(R.module)
|
||||
|
||||
@@ -120,6 +120,7 @@
|
||||
src.emag = new /obj/item/weapon/gun/energy/laser/mounted(src) //Emag. Not a big problem.
|
||||
R.icon = 'icons/mob/widerobot_vr.dmi'
|
||||
R.hands.icon = 'icons/mob/screen1_robot_vr.dmi'
|
||||
R.ui_style_vr = TRUE
|
||||
//R.icon_state = "k9"
|
||||
R.pixel_x = -16
|
||||
R.old_x = -16
|
||||
@@ -173,6 +174,7 @@
|
||||
src.emag = new /obj/item/weapon/dogborg/pounce(src) //Pounce
|
||||
R.icon = 'icons/mob/widerobot_vr.dmi'
|
||||
R.hands.icon = 'icons/mob/screen1_robot_vr.dmi'
|
||||
R.ui_style_vr = TRUE
|
||||
//R.icon_state = "medihound"
|
||||
R.pixel_x = -16
|
||||
R.old_x = -16
|
||||
@@ -202,6 +204,7 @@
|
||||
src.emag = new /obj/item/weapon/gun/energy/laser/mounted(src)
|
||||
R.icon = 'icons/mob/64x64robot_vr.dmi'
|
||||
R.hands.icon = 'icons/mob/screen1_robot_vr.dmi'
|
||||
R.ui_style_vr = TRUE
|
||||
R.pixel_x = -16
|
||||
R.old_x = -16
|
||||
R.default_pixel_x = -16
|
||||
@@ -226,6 +229,7 @@
|
||||
src.emag = new /obj/item/weapon/dogborg/pounce(src) //Pounce
|
||||
R.icon = 'icons/mob/widerobot_vr.dmi'
|
||||
R.hands.icon = 'icons/mob/screen1_robot_vr.dmi'
|
||||
R.ui_style_vr = TRUE
|
||||
//R.icon_state = "scrubpup"
|
||||
R.pixel_x = -16
|
||||
R.old_x = -16
|
||||
@@ -260,6 +264,7 @@
|
||||
src.emag = new /obj/item/weapon/hand_tele(src)
|
||||
R.icon = 'icons/mob/widerobot_vr.dmi'
|
||||
R.hands.icon = 'icons/mob/screen1_robot_vr.dmi'
|
||||
R.ui_style_vr = TRUE
|
||||
//R.icon_state = "science"
|
||||
R.pixel_x = -16
|
||||
R.old_x = -16
|
||||
@@ -268,3 +273,12 @@
|
||||
R.wideborg = TRUE
|
||||
..()
|
||||
|
||||
/obj/item/weapon/robot_module/Reset(var/mob/living/silicon/robot/R)
|
||||
R.pixel_x = initial(pixel_x)
|
||||
R.pixel_y = initial(pixel_y)
|
||||
R.icon = initial(R.icon)
|
||||
R.dogborg = FALSE
|
||||
R.wideborg = FALSE
|
||||
R.ui_style_vr = FALSE
|
||||
R.default_pixel_x = initial(pixel_x)
|
||||
..()
|
||||
@@ -8,6 +8,7 @@
|
||||
var/dogborg = FALSE //Dogborg special features (overlays etc.)
|
||||
var/wideborg = FALSE //When the borg simply doesn't use standard 32p size.
|
||||
var/original_icon = 'icons/mob/robots.dmi'
|
||||
var/ui_style_vr = FALSE //Do we use our hud icons?
|
||||
var/vr_icons = list(
|
||||
"handy-hydro",
|
||||
"handy-service",
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 135 KiB After Width: | Height: | Size: 135 KiB |
Reference in New Issue
Block a user