1
This commit is contained in:
parent
744994c579
commit
211bc222b6
@ -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()) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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 载具剩余子弹数
|
||||
|
Loading…
x
Reference in New Issue
Block a user