1
This commit is contained in:
parent
443f23eb5a
commit
19efcf3ff1
@ -35,6 +35,7 @@
|
||||
#include "mt/Buff.h"
|
||||
#include "mt/Text.h"
|
||||
#include "mt/Map.h"
|
||||
#include "mt/PveGemini.h"
|
||||
|
||||
const int kREVIVE_BUFF_ID = 1005;
|
||||
|
||||
@ -89,7 +90,7 @@ void Player::Initialize()
|
||||
}
|
||||
#ifdef DEBUG
|
||||
{
|
||||
std::vector<int> present_items{30202, 30201, 30301, 30203, 30207, 30208, 30209, 30210, 30204, 30205, 30206};
|
||||
std::vector<int> present_items{30202, 30201, 30301, 30203, 30207, 30208, 30209, 30210, 30204, 30205, 30206, 30302, 30303};
|
||||
for (int item_id : present_items) {
|
||||
GMAddItem(item_id, 10);
|
||||
}
|
||||
@ -1372,6 +1373,8 @@ void Player::PushJoinRoomMsg()
|
||||
notifymsg.set_started(false);
|
||||
notifymsg.set_room_uuid(a8::XValue(room->GetRoomUuid()).GetString());
|
||||
notifymsg.set_match_mode(GetBattleContext()->GetMatchMode());
|
||||
notifymsg.set_pve_instance_id(room->pve_instance ? room->pve_instance->gemini_id() : 0);
|
||||
notifymsg.set_mapid(room->GetMapMeta()->map_id());
|
||||
GGListener::Instance()->SendToClient(socket_handle, 0, notifymsg);
|
||||
#ifdef DEBUG
|
||||
a8::XPrintf("PushJoinRooMmsg %d\n", {GetUniId()});
|
||||
|
@ -23,6 +23,7 @@ void SelfChecker::Init()
|
||||
AddBuff(202013);
|
||||
AddBuff(204014);
|
||||
AddBuff(209016);
|
||||
AddBuff(208014);
|
||||
}
|
||||
auto fields = a8::GetEnumFields<SpecBuffId_e>();
|
||||
for (auto& pair : *fields) {
|
||||
|
@ -439,14 +439,17 @@ void Skill::ProcJSHX()
|
||||
if (owner->GetCurrWeapon()->meta->id() != weapon_id) {
|
||||
return;
|
||||
}
|
||||
#if 0
|
||||
if (!owner->GetCurrWeapon()->skill_meta ||
|
||||
owner->GetCurrWeapon()->skill_meta->GetMagicId() != MAGIC_HLYZ) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
if (!owner->dead) {
|
||||
float add_hp = SkillHelper::GetJshxHp(owner, meta);
|
||||
float real_add_hp = std::max(0.0f, std::min(owner->GetMaxHP() - owner->GetHP(), add_hp));
|
||||
owner->AddHp(add_hp);
|
||||
owner->TryAddBuff(owner, 208014);
|
||||
#ifdef DEBUG
|
||||
{
|
||||
std::string dbg_msg = a8::Format
|
||||
|
Loading…
x
Reference in New Issue
Block a user