Beispiel #1
0
        //生物受到伤害
        public void SufferDamage(int damageNum)
        {
            //cumulativeDamage += damageNum;

            cardEntryVariableAttributeMap.ChangeValueByCodeAndType("Def", VATtrtype.DamageValue, -damageNum);
            ttAttributeChange();
            CheckMinionIsDead();
        }
Beispiel #2
0
        //移除一张手牌
        //public void RemoveOneCard(cardentry handcellitem) {
        //    //找到目标要移除的牌
        //    cardentry targethand = null;
        //    foreach (cardentry handcell in handgriditem.handcells) {
        //        if (handcell.uuid == handcellitem.uuid) {
        //            targethand = handcell;
        //        }
        //    }
        //    if (targethand != null)
        //    {
        //        handgriditem.handcells.remove(targethand);
        //        ttplayerremoveacard(targethand);
        //    }
        //    else {
        //        utilitylog.logerror("找不到要移除的手牌");

        //    }
        //}
        //改变费用上限
        public void ChangeManaUpperLimit(int num)
        {
            playerVariableAttributeMap.ChangeValueByCodeAndType("Mana", VATtrtype.OriginalValue, num);
            playerVariableAttributeMap.ChangeValueByCodeAndType("Mana", VATtrtype.DamageValue, -num);
            ttManaCostChange(playerVariableAttributeMap.variableAttributeMap["Mana"]);
        }