Beispiel #1
0
 private void HandleAbility(Actor source, Actor target, Ability ability)
 {
     ability.HandleAbility(source, target);
     FloatingText f = new FloatingText();
     f.SetPosition(monster_tags[target_index].GetPosition().x + 96, monster_tags[target_index].GetPosition().y - 32);
     f.SetMovePosition(f.GetPosition().x, f.GetPosition().y - 128, .05f);
     f.SetText(source.GetAttack().GetDamageValue(source).ToString());
     f.SetTimedLife(1.0f);
     MessageLog.AddMessage(string.Format("{0} deals {1} damage to {2}", source.name, source.GetAttack().GetDamageValue(source).ToString(), target.name));
 }