mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[MIRROR] Basepixels (#1512)
* Basepixels (#54652) * Basepixels Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
@@ -431,23 +431,23 @@
|
||||
|
||||
/obj/machinery/chem_master/adjust_item_drop_location(atom/movable/AM) // Special version for chemmasters and condimasters
|
||||
if (AM == beaker)
|
||||
AM.pixel_x = -8
|
||||
AM.pixel_y = 8
|
||||
AM.pixel_x = AM.base_pixel_x - 8
|
||||
AM.pixel_y = AM.base_pixel_y + 8
|
||||
return null
|
||||
else if (AM == bottle)
|
||||
if (length(bottle.contents))
|
||||
AM.pixel_x = -13
|
||||
AM.pixel_x = AM.base_pixel_x - 13
|
||||
else
|
||||
AM.pixel_x = -7
|
||||
AM.pixel_y = -8
|
||||
AM.pixel_x = AM.base_pixel_x - 7
|
||||
AM.pixel_y = AM.base_pixel_y - 8
|
||||
return null
|
||||
else
|
||||
var/md5 = md5(AM.name)
|
||||
for (var/i in 1 to 32)
|
||||
. += hex2num(md5[i])
|
||||
. = . % 9
|
||||
AM.pixel_x = ((.%3)*6)
|
||||
AM.pixel_y = -8 + (round( . / 3)*8)
|
||||
AM.pixel_x = AM.base_pixel_x + ((.%3)*6)
|
||||
AM.pixel_y = AM.base_pixel_y - 8 + (round( . / 3)*8)
|
||||
|
||||
/**
|
||||
* Translates styles data into UI compatible format
|
||||
|
||||
Reference in New Issue
Block a user