1
This commit is contained in:
parent
8a53586b77
commit
b120b4355a
@ -2678,27 +2678,27 @@ void Creature::OnLand()
|
||||
}
|
||||
}
|
||||
gun_grasp_->Init();
|
||||
#ifdef DEBUG
|
||||
room->xtimer.SetTimeoutWpEx
|
||||
(
|
||||
SERVER_FRAME_RATE,
|
||||
[this] (int event, const a8::Args* args)
|
||||
{
|
||||
if (a8::TIMER_EXEC_EVENT == event) {
|
||||
if (IsPlayer()) {
|
||||
room->frame_event.AddPropChg
|
||||
(
|
||||
GetWeakPtrRef(),
|
||||
kPropShowHonor,
|
||||
0,
|
||||
0,
|
||||
true
|
||||
);
|
||||
if (IsPlayer() && GetBattleContext()->GetHonor()) {
|
||||
room->xtimer.SetTimeoutWpEx
|
||||
(
|
||||
SERVER_FRAME_RATE,
|
||||
[this] (int event, const a8::Args* args)
|
||||
{
|
||||
if (a8::TIMER_EXEC_EVENT == event) {
|
||||
if (IsPlayer()) {
|
||||
room->frame_event.AddPropChg
|
||||
(
|
||||
GetWeakPtrRef(),
|
||||
kPropShowHonor,
|
||||
0,
|
||||
0,
|
||||
true
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
&xtimer_attacher);
|
||||
#endif
|
||||
},
|
||||
&xtimer_attacher);
|
||||
}
|
||||
}
|
||||
|
||||
void Creature::CheckBulletHitHoldShield(IBullet* bullet, bool& eat)
|
||||
|
@ -1112,3 +1112,8 @@ int BattleDataContext::GetBattleTimes()
|
||||
{
|
||||
return battle_times_;
|
||||
}
|
||||
|
||||
int BattleDataContext::GetHonor()
|
||||
{
|
||||
return honor_;
|
||||
}
|
||||
|
@ -86,6 +86,8 @@ struct BattleDataContext
|
||||
int GetCurrentGetStar();
|
||||
int GetBattleTimes();
|
||||
|
||||
int GetHonor();
|
||||
|
||||
private:
|
||||
void Clear();
|
||||
float GetTotalAtk(IBullet* bullet);
|
||||
@ -109,6 +111,8 @@ private:
|
||||
|
||||
int rank_ = 0;
|
||||
|
||||
int honor_ = 0;
|
||||
|
||||
int skin_id_ = 0;
|
||||
int level_ = 0;
|
||||
int hero_lv_ = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user