mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
[MIRROR] Basepixels (#1512)
* Basepixels (#54652) * Basepixels Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user