Example #1
0
 public void TakeBuff(int buffAmount, ECreatureAttributes creatureAttributes)
 {
     if (creatureAttributes == ECreatureAttributes.charisma)
     {
         charisma += buffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.constitution)
     {
         constitution += buffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.dexterity)
     {
         dexterity += dexterity;
     }
     if (creatureAttributes == ECreatureAttributes.gameSpeed)
     {
         gameSpeed += buffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.intelligence)
     {
         intelligence += buffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.maxHp)
     {
         maxHp += buffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.originalAP)
     {
         originalAP += buffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.strength)
     {
         strength += buffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.wisdom)
     {
         wisdom += buffAmount;
     }
 }
Example #2
0
 public void TakeDebuff(int debuffAmount, ECreatureAttributes creatureAttributes)
 {
     if (creatureAttributes == ECreatureAttributes.charisma)
     {
         charisma -= debuffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.constitution)
     {
         constitution -= debuffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.dexterity)
     {
         dexterity -= dexterity;
     }
     if (creatureAttributes == ECreatureAttributes.gameSpeed)
     {
         gameSpeed -= debuffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.intelligence)
     {
         intelligence -= debuffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.maxHp)
     {
         maxHp -= debuffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.originalAP)
     {
         originalAP -= debuffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.strength)
     {
         strength -= debuffAmount;
     }
     if (creatureAttributes == ECreatureAttributes.wisdom)
     {
         wisdom -= debuffAmount;
     }
 }