示例#1
0
    public bool Pick(Hero hero)
    {
        Attribute attribute = hero.GetAttribute();

        if (itemConfig.addhp > 0)
        {
            float addhp = (-attribute.maxHp * itemConfig.addhp) / 10000;
            hero.ChangeHP(addhp, false);
            hero.PlayEffect(1);

            Follower f = hero.follower;

            while (f != null)
            {
                f.ChangeHP(addhp, false);
                f = f.follower;
            }
        }

        if (itemConfig.addpow > 0)
        {
        }

        if (itemConfig.atk > 0)
        {
        }

        BattleControllor.RemoveItem(this);

        return(true);
    }