mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-10 15:36:56 +01:00
fixes borg pixel shift, and borg expander also gives client-side resize action
This commit is contained in:
@@ -669,11 +669,12 @@
|
||||
icon_state = "[module.cyborg_base_icon]-wreck"
|
||||
|
||||
if(module.cyborg_pixel_offset)
|
||||
pixel_x = module.cyborg_pixel_offset
|
||||
pixel_w = module.cyborg_pixel_offset
|
||||
//End of citadel changes
|
||||
|
||||
if(module.cyborg_base_icon == "robot")
|
||||
icon = 'icons/mob/robots.dmi'
|
||||
pixel_w = initial(pixel_w)
|
||||
pixel_x = initial(pixel_x)
|
||||
if(stat != DEAD && !(IsUnconscious() || IsStun() || IsKnockdown() || low_power_mode)) //Not dead, not stunned.
|
||||
if(!eye_lights)
|
||||
@@ -1084,11 +1085,11 @@
|
||||
|
||||
/mob/living/silicon/robot/update_transform()
|
||||
. = ..()
|
||||
if (hasExpanded)
|
||||
var/matrix/ntransform = matrix(transform)
|
||||
ntransform.Scale(2) //This seems a bit big
|
||||
ntransform.Translate(0, 16)
|
||||
transform = ntransform
|
||||
if(hasExpanded)
|
||||
var/matrix/ntransform = matrix()
|
||||
ntransform.Scale(2)
|
||||
ntransform.Translate(0, 16) //plop onto the tile you nerd
|
||||
transform = ntransform //this will overwrite VV stuff probably
|
||||
|
||||
/mob/living/silicon/robot/proc/place_on_head(obj/item/new_hat)
|
||||
if(hat)
|
||||
|
||||
@@ -188,13 +188,17 @@
|
||||
/obj/item/robot_module/proc/transform_to(new_module_type)
|
||||
var/mob/living/silicon/robot/R = loc
|
||||
var/obj/item/robot_module/RM = new new_module_type(R)
|
||||
testing("Module Picked: \"[RM.name]\"")
|
||||
if(!RM.be_transformed_to(src))
|
||||
testing("\"[RM.name]\" [RM.type].be_transformed_to(src) returned false.")
|
||||
qdel(RM)
|
||||
return
|
||||
RM.handle_sprite_action(R, R.hasExpanded) //hyperstation edit
|
||||
R.module = RM
|
||||
R.update_module_innate()
|
||||
RM.rebuild_modules()
|
||||
INVOKE_ASYNC(RM, .proc/do_transform_animation)
|
||||
SEND_SIGNAL(R, COMSIG_CYBORG_MODULE_CHANGE) //hyperstation edit
|
||||
qdel(src)
|
||||
return RM
|
||||
|
||||
|
||||
Reference in New Issue
Block a user