[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
@@ -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