Skip to content

Commit

Permalink
Merge pull request #529 from KoboldCommando/borg-icon-files
Browse files Browse the repository at this point in the history
Fixes cargo borg reset invisibility
  • Loading branch information
dwasint authored Nov 7, 2023
2 parents c54fee9 + aac39b3 commit 31f31bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/mob/living/silicon/robot/robot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@
cut_overlays()
SSvis_overlays.remove_vis_overlay(src, managed_vis_overlays)
icon_state = model.cyborg_base_icon
icon = model.cyborg_base_icon_file
if(stat != DEAD && !(HAS_TRAIT(src, TRAIT_KNOCKEDOUT) || IsStun() || IsParalyzed() || low_power_mode)) //Not dead, not stunned.
if(!eye_lights)
eye_lights = new()
Expand Down
3 changes: 3 additions & 0 deletions code/modules/mob/living/silicon/robot/robot_model.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
var/model_select_icon = "nomod"
///Produces the icon for the borg and, if no special_light_key is set, the lights
var/cyborg_base_icon = "robot"
///Keeps track of alternate icon files for the borg
var/cyborg_base_icon_file = 'icons/mob/silicon/robots.dmi'
///If we want specific lights, use this instead of copying lights in the dmi
var/special_light_key
///Holds all the usable modules (tools)
Expand Down Expand Up @@ -238,6 +240,7 @@
cyborg.diag_hud_set_status()
cyborg.diag_hud_set_borgcell()
cyborg.diag_hud_set_aishell()
cyborg.update_icons()
log_silicon("CYBORG: [key_name(cyborg)] has transformed into the [new_model] model.")

INVOKE_ASYNC(new_model, PROC_REF(do_transform_animation))
Expand Down
1 change: 1 addition & 0 deletions monkestation/code/modules/cargoborg/code/cargo_module.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
)
hat_offset = 0
cyborg_base_icon = "cargo"
cyborg_base_icon_file = 'monkestation/code/modules/cargoborg/icons/robots_cargo.dmi'
model_select_icon = "cargo"
canDispose = TRUE
borg_skins = list(
Expand Down

0 comments on commit 31f31bd

Please sign in to comment.