Center_of_mass for snacks/dishes

This commit is contained in:
Hubblenaut
2016-01-16 19:45:17 +01:00
parent 1fe02fc7e8
commit 39cdd540fe
4 changed files with 224 additions and 16 deletions

View File

@@ -13,7 +13,7 @@
/obj/item/weapon/reagent_containers/food/New()
..()
if (!pixel_x && !pixel_y)
if (isnull(center_of_mass) && !pixel_x && !pixel_y)
src.pixel_x = rand(-6.0, 6) //Randomizes postion
src.pixel_y = rand(-6.0, 6)

File diff suppressed because it is too large Load Diff

View File

@@ -4,6 +4,7 @@
icon_state = "meat"
health = 180
filling_color = "#FF1C1C"
center_of_mass = list("x"=16, "y"=14)
New()
..()
reagents.add_reagent("protein", 9)