Merge pull request #789 from Hubblenaut/master

Center_of_mass for snacks/dishes
This commit is contained in:
Datraen
2016-01-26 12:16:53 -05:00
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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 87 KiB