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);
        }
    }
예제 #2
0
 protected override void ImmediateReaction()
 {
     belt.AddItem(item);
 }