This commit is contained in:
aozhiwei 2023-03-06 18:48:17 +08:00
parent 744994c579
commit 211bc222b6
3 changed files with 9 additions and 4 deletions

View File

@ -2411,7 +2411,10 @@ void Creature::UpdateMove()
} else {
if (!GetMovement()->IsFindPath()) {
GetMovement()->CalcTargetPos(mt::Param::s().move_step_len);
if (GetMovement()->UpdatePosition()) {
if (!GetMovement()->UpdatePosition()) {
if (IsPlayer()) {
}
}
}
}

View File

@ -1130,9 +1130,8 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
}
}
} else if (cmd == "drop_loot") {
std::vector<int> present_items{30202, 30201, 30301, 30203, 30207, 30208, 30209, 30210, 30204, 30205, 30206, 30302, 30303};
for (int equip_id : present_items) {
const mt::Equip* equip_meta = mt::Equip::GetById(equip_id);
if (cmds.size() >= 2) {
const mt::Equip* equip_meta = mt::Equip::GetById(a8::XValue(cmds[1]));
if (equip_meta) {
Position drop_pos = GetPos();
room->DropItem(drop_pos.ToGlmVec3(), equip_meta->id(), 1, 1);

View File

@ -111,6 +111,9 @@ message MFVec3
/*
property_type: 1
property_type: 2
property_type: 3
property_subtype:
valule:
property_type: 4 cd时间
property_type: 5 cd时间
property_type: 6