Skip to content

Commit

Permalink
Merge pull request #624 from KoboldCommando/invisiborg
Browse files Browse the repository at this point in the history
Fixes invisible cyborgs and expand module
  • Loading branch information
dwasint authored Nov 27, 2023
2 parents b97424e + 4f7a58e commit 524409e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion code/game/objects/items/robot/robot_upgrades.dm
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,9 @@
robot.SetLockdown(FALSE)
robot.set_anchored(FALSE)
REMOVE_TRAIT(robot, TRAIT_NO_TRANSFORM, REF(src))
robot.resize = 2
robot.hasExpanded = TRUE
robot.update_transform(2)
robot.update_transform()

/obj/item/borg/upgrade/expand/deactivate(mob/living/silicon/robot/R, user = usr)
. = ..()
Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/silicon/robot/robot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@
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: 1 addition & 2 deletions code/modules/mob/living/silicon/robot/robot_model.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
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 @@ -228,6 +226,7 @@
var/mob/living/silicon/robot/cyborg = loc
var/obj/item/robot_model/new_model = new new_config_type(cyborg)
new_model.robot = cyborg
cyborg.icon = 'icons/mob/silicon/robots.dmi' //reset our icon to default, but before a new custom icon may be applied by be_transformed_to
if(!new_model.be_transformed_to(src, forced))
qdel(new_model)
return
Expand Down
1 change: 0 additions & 1 deletion monkestation/code/modules/cargoborg/code/cargo_module.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
)
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 524409e

Please sign in to comment.