Example #1
0
    public void CreatureInfoChanged(int creature_idn)
    {
        int index = BookInfo.FindIndex(c => c.data.creature_idn == creature_idn);

        if (index < 0)
        {
            BookInfo.Add(new CreatureBookNotifyData(new pd_CreatureBook {
                creature_idn = creature_idn, take_count = 1
            }, true));
        }
        else
        {
            BookInfo[index].data.take_count++;
        }
        IsChanged = true;

        Save();
    }