예제 #1
0
    public void MakeArmor(string i)
    {
        Armor newArmor = new Armor();

        newArmor.damage_reduction = 0.5f;
        newArmor.person_id        = Constants.PERSON_ID;
        newArmor.id = 0;
        newArmor.amount_modifier = inventory.Ownedminerals [int.Parse(i)].mineral_class;
        string theURL = Constants.BASE_URL + "armor/";

        StartCoroutine(PostRequest(theURL, JsonUtility.ToJson(newArmor)));
        inventory.AddArmor(newArmor);
        StringUpdate();
    }