public void BurlapWall()
    {
        if (Inv.sand_resource >= 1 && Inv.rope_resource >= 1)
        {
            CanCraft_BurlapWall = true;
        }

        else if (Inv.sand_resource <= 0 && Inv.rope_resource <= 0)
        {
            CanCraft_BurlapWall = false;
        }

        if (CanCraft_BurlapWall == true)
        {
            Inv.sand_resource--;
            Inv.rope_resource--;
            Inv.craftedBurlapWall++;
            belt.AddItem(item_BurlapWall);
        }
    }
Ejemplo n.º 2
0
 protected override void ImmediateReaction()
 {
     belt.AddItem(item);
 }