[MIRROR] Basepixels (#1512)

* Basepixels (#54652)

* Basepixels

Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
SkyratBot
2020-10-30 17:30:11 +00:00
committed by GitHub
co-authored by Rohesie
parent b71c7d3b81
commit 119dd2ea3d
72 changed files with 226 additions and 164 deletions
+4 -4
View File
@@ -414,8 +414,8 @@ GLOBAL_LIST_INIT(wire_node_generating_types, typecacheof(list(/obj/structure/gri
/obj/item/stack/cable_coil/Initialize(mapload, new_amount = null)
. = ..()
pixel_x = rand(-2,2)
pixel_y = rand(-2,2)
pixel_x = base_pixel_x + rand(-2, 2)
pixel_y = base_pixel_y + rand(-2, 2)
update_icon()
/obj/item/stack/cable_coil/examine(mob/user)
@@ -593,8 +593,8 @@ GLOBAL_LIST_INIT(wire_node_generating_types, typecacheof(list(/obj/structure/gri
. = ..()
if(!amount)
amount = rand(1,2)
pixel_x = rand(-2,2)
pixel_y = rand(-2,2)
pixel_x = base_pixel_x + rand(-2, 2)
pixel_y = base_pixel_y + rand(-2, 2)
update_icon()
/obj/item/stack/cable_coil/cyborg
+4 -4
View File
@@ -233,8 +233,8 @@ By design, d1 is the smallest direction and d2 is the highest
if(pipe_cleaner_colors[pipe_cleaner_color])
pipe_cleaner_color = pipe_cleaner_colors[pipe_cleaner_color]
pixel_x = rand(-2,2)
pixel_y = rand(-2,2)
pixel_x = base_pixel_x + rand(-2, 2)
pixel_y = base_pixel_y + rand(-2, 2)
update_icon()
///////////////////////////////////
@@ -460,8 +460,8 @@ By design, d1 is the smallest direction and d2 is the highest
. = ..()
if(!amount)
amount = rand(1,2)
pixel_x = rand(-2,2)
pixel_y = rand(-2,2)
pixel_x = base_pixel_x + rand(-2, 2)
pixel_y = base_pixel_y + rand(-2, 2)
update_icon()
/obj/item/stack/pipe_cleaner_coil/cut/red
+2 -2
View File
@@ -388,8 +388,8 @@
if(istype(I, /obj/item/turret_control))
qdel(I)
if(istype(buckled_mob))
buckled_mob.pixel_x = 0
buckled_mob.pixel_y = 0
buckled_mob.pixel_x = buckled_mob.base_pixel_x
buckled_mob.pixel_y = buckled_mob.base_pixel_y
if(buckled_mob.client)
buckled_mob.client.view_size.resetToDefault()
auto.Remove(buckled_mob)
+2 -2
View File
@@ -222,8 +222,8 @@
randomise_offset(random_offset)
/obj/item/solar_assembly/proc/randomise_offset(amount)
pixel_x = rand(-amount,amount)
pixel_y = rand(-amount,amount)
pixel_x = base_pixel_x + rand(-amount, amount)
pixel_y = base_pixel_y + rand(-amount, amount)
// Give back the glass type we were supplied with
/obj/item/solar_assembly/proc/give_glass(device_broken)