diff --git a/code/modules/mob/living/silicon/robot/robot_modules/station.dm b/code/modules/mob/living/silicon/robot/robot_modules/station.dm index f77637aa05..3d404de6b3 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules/station.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules/station.dm @@ -51,6 +51,8 @@ var/global/list/robot_modules = list( if(R.radio) R.radio.recalculateChannels() + vr_add_sprites() //Vorestation Edit: For vorestation only sprites + R.set_module_sprites(sprites) R.choose_icon(R.module_sprites.len + 1, R.module_sprites) diff --git a/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm b/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm index 63227dba64..4e9c61ed19 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm @@ -14,6 +14,7 @@ LANGUAGE_DAEMON = 0, LANGUAGE_ENOCHIAN = 0 ) + var/vr_sprites = list() /obj/item/weapon/robot_module/robot/clerical languages = list( @@ -47,6 +48,10 @@ /obj/item/weapon/robot_module/proc/vr_new() // Any Global modules, just add them before the return (This will also affect all the borgs in this file) return +/obj/item/weapon/robot_module/proc/vr_add_sprites() // Adds sprites from this file into list of avialible ones for global modules + src.sprites += vr_sprites + return + /obj/item/weapon/robot_module/robot/medical/surgeon/vr_new() //Surgeon Bot src.modules += new /obj/item/device/sleevemate(src) //Lets them scan people. . = ..() //Any Global vore modules will come from here @@ -55,6 +60,27 @@ src.modules += new /obj/item/device/sleevemate(src) //Lets them scan people. . = ..() //Any Global vore modules will come from here +/obj/item/weapon/robot_module/robot/medical/crisis //Allows Crisis module to use Handy sprite + vr_sprites = list( + "Handy" = "handy-med" + ) + +/obj/item/weapon/robot_module/robot/clerical/butler //VR Handy sprites + vr_sprites = list( + "Handy - Service" = "vr-handy-service", + "Handy - Hydro" = "vr-handy-hydro" + ) + +/obj/item/weapon/robot_module/robot/clerical/general //VR Handy sprites + vr_sprites = list( + "Handy" = "vr-handy-clerk" + ) + +/obj/item/weapon/robot_module/robot/janitor //VR Handy sprites + vr_sprites = list( + "Handy" = "vr-handy-janitor" + ) + /obj/item/weapon/robot_module/robot/knine name = "k9 robot module" sprites = list( diff --git a/code/modules/mob/living/silicon/robot/robot_vr.dm b/code/modules/mob/living/silicon/robot/robot_vr.dm index 6bf2f77c0d..b2167114c5 100644 --- a/code/modules/mob/living/silicon/robot/robot_vr.dm +++ b/code/modules/mob/living/silicon/robot/robot_vr.dm @@ -17,6 +17,7 @@ return feed_grabbed_to_self(src,T) /mob/living/silicon/robot/updateicon() + vr_sprite_check() ..() if(dogborg == TRUE && stat == CONSCIOUS) if(sleeper_g == TRUE) @@ -70,3 +71,9 @@ cleaned_human << "[src] cleans your face!" return return + +/mob/living/silicon/robot/proc/vr_sprite_check() + if(findtext(src.icon_state, "vr-", 1, 4)) + src.icon = 'icons/mob/robots_vr.dmi' + else + src.icon = 'icons/mob/robots.dmi' \ No newline at end of file diff --git a/icons/mob/robots_vr.dmi b/icons/mob/robots_vr.dmi new file mode 100644 index 0000000000..e50fa1d686 Binary files /dev/null and b/icons/mob/robots_vr.dmi differ