1
This commit is contained in:
parent
34241b7b57
commit
42fd10903b
@ -43,6 +43,18 @@ void Player::Initialize()
|
|||||||
if (room->IsInfiniteBulletMode()) {
|
if (room->IsInfiniteBulletMode()) {
|
||||||
SetInfiniteBulletMode();
|
SetInfiniteBulletMode();
|
||||||
}
|
}
|
||||||
|
#ifdef DEBUG
|
||||||
|
room->xtimer.AddDeadLineTimerAndAttach
|
||||||
|
(SERVER_FRAME_RATE * 10,
|
||||||
|
a8::XParams()
|
||||||
|
.SetSender(this),
|
||||||
|
[] (const a8::XParams& param)
|
||||||
|
{
|
||||||
|
Human* hum = (Human*)param.sender.GetUserData();
|
||||||
|
hum->SetHP(hum->GetHP() - 100);
|
||||||
|
},
|
||||||
|
&xtimer_attacher.timer_list_);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::Update(int delta_time)
|
void Player::Update(int delta_time)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user