mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-29 23:16:21 +01:00
Added new Handy sprites and possibility for new ones
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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 << "<span class='warning'>[src] cleans your face!</span>"
|
||||
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'
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
Reference in New Issue
Block a user