2019-06-18 22:55:32 -04:00
|
|
|
|
/*
|
|
|
|
|
===========================================================================
|
|
|
|
|
Copyright (C) 2015-2019 Project Meteor Dev Team
|
|
|
|
|
|
|
|
|
|
This file is part of Project Meteor Server.
|
|
|
|
|
|
|
|
|
|
Project Meteor Server is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
|
|
Project Meteor Server is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
along with Project Meteor Server. If not, see <https:www.gnu.org/licenses/>.
|
|
|
|
|
===========================================================================
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
using FFXIVClassic_Map_Server.Actors;
|
2017-06-12 03:50:02 +01:00
|
|
|
|
namespace FFXIVClassic_Map_Server.actors.chara.ai.utils
|
|
|
|
|
{
|
|
|
|
|
static class AttackUtils
|
|
|
|
|
{
|
2017-06-12 22:07:50 +01:00
|
|
|
|
public static int CalculateDamage(Character attacker, Character defender)
|
2017-06-12 03:50:02 +01:00
|
|
|
|
{
|
2017-06-12 22:07:50 +01:00
|
|
|
|
int dmg = CalculateBaseDamage(attacker, defender);
|
2017-06-12 03:50:02 +01:00
|
|
|
|
|
|
|
|
|
return dmg;
|
|
|
|
|
}
|
2017-08-02 23:06:11 +01:00
|
|
|
|
|
2017-06-12 22:07:50 +01:00
|
|
|
|
public static int CalculateBaseDamage(Character attacker, Character defender)
|
2017-06-12 03:50:02 +01:00
|
|
|
|
{
|
2017-07-02 20:01:24 +01:00
|
|
|
|
// todo: actually calculate damage
|
|
|
|
|
return Program.Random.Next(10) * 10;
|
2017-06-12 03:50:02 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-06-18 22:55:32 -04:00
|
|
|
|
}
|