This commit is contained in:
aozhiwei 2022-04-07 08:06:24 +08:00
parent 55b109eead
commit 4f615ed63e
2 changed files with 24 additions and 0 deletions

View File

@ -92,6 +92,11 @@ void PlayerStats::SetHeroWeaponLv(int hero_id, int weapon_lv)
MustBeHero(hero_id).weapon_lv = std::max(MustBeHero(hero_id).weapon_lv, weapon_lv);
}
void PlayerStats::CalcReward(int ranked, int kills)
{
}
Human::Human():Creature()
{
default_weapon.weapon_idx = 0;

View File

@ -38,6 +38,22 @@ struct HeroStats
int weapon_lv = 0;
};
struct OverRewardItem
{
std::string uniid;
int obtain_gold = 0;
int gold_limit = 0;
};
struct OverReward
{
OverRewardItem hero;
OverRewardItem weapon1;
OverRewardItem weapon2;
int bounds = 0;
int total = 0;
};
struct PlayerStats
{
int kills = 0;
@ -83,6 +99,8 @@ struct PlayerStats
int dead_times = 0;
OverReward over_reward;
WeaponStats& MustBeWeapon(int weapon_id);
void IncWeaponKills(int weapon_id, int val);
void IncWeaponDamageOut(int weapon_id, int val);
@ -91,6 +109,7 @@ struct PlayerStats
HeroStats& MustBeHero(int hero_id);
void SetHeroSkillLv(int hero_id, int skill_lv);
void SetHeroWeaponLv(int hero_id, int weapon_lv);
void CalcReward(int ranked, int kills);
};
struct xtimer_list;