Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
H-POPS committed May 20, 2016
1 parent 9e981bd commit 93ae608
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Depender/Objects/Shops/ShopMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class ShopMod : ModdedObject
public override void Decorate()
{
CustomShop shop = Object.AddComponent<CustomShop>();
shop.walkableFlag = Block.WalkableFlagType.FORWARD;
List<GameObject> productsGO = new List<GameObject>();
foreach (ProductMod P in products)
{
Expand All @@ -42,16 +43,15 @@ public enum hand { Left, Right }
public hand Hand = hand.Left;
[SerializeField]
public List<ingredient> ingredients = new List<ingredient>();
ingredient selected;
private ingredient selected;
private Vector2 scrollPos;
public virtual GameObject Decorate()
{

Product P = GO.GetComponent<Product>();

P.defaultPrice = price;



switch (Hand)
{
case hand.Left:
Expand Down Expand Up @@ -158,6 +158,8 @@ public enum temprature { none, cold, hot }
public override GameObject Decorate()
{
ConsumableProduct CP = GO.AddComponent<ConsumableProductInstance>();

CP.trash = AssetManager.Instance.getPrefab(Prefabs.CandyTrash).gameObject;

BindingFlags flags = BindingFlags.GetField | BindingFlags.Instance | BindingFlags.NonPublic;
typeof(Product).GetField("displayName", flags).SetValue(CP, Name);
Expand Down

0 comments on commit 93ae608

Please sign in to comment.