1
This commit is contained in:
parent
139d0eeda7
commit
420b324c4f
@ -944,3 +944,8 @@ void Buff::ProcRemoveMachineGun()
|
|||||||
{
|
{
|
||||||
RecoverHoldWeapons();
|
RecoverHoldWeapons();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Buff::ProcReserveMove()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -78,6 +78,7 @@ class Buff
|
|||||||
void ProcInWater();
|
void ProcInWater();
|
||||||
void ProcRemoveInWater();
|
void ProcRemoveInWater();
|
||||||
void ProcReserve();
|
void ProcReserve();
|
||||||
|
void ProcReserveMove();
|
||||||
void ProcMachineGun();
|
void ProcMachineGun();
|
||||||
void ProcRemoveMachineGun();
|
void ProcRemoveMachineGun();
|
||||||
|
|
||||||
|
@ -1439,6 +1439,7 @@ void Creature::ProcBuffEffect(Creature* caster, Buff* buff)
|
|||||||
break;
|
break;
|
||||||
case kBET_ReverseMove:
|
case kBET_ReverseMove:
|
||||||
{
|
{
|
||||||
|
buff->ProcReserveMove();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case kBET_MachineGun:
|
case kBET_MachineGun:
|
||||||
|
@ -1830,6 +1830,10 @@ void Human::_InternalUpdateMove(float speed)
|
|||||||
float ny = GetMoveDir().y * speed;
|
float ny = GetMoveDir().y * speed;
|
||||||
a8::Vec2 old_pos = GetPos();
|
a8::Vec2 old_pos = GetPos();
|
||||||
|
|
||||||
|
if (HasBuffEffect(kBET_ReverseMove)) {
|
||||||
|
nx = -nx;
|
||||||
|
ny = -ny;
|
||||||
|
}
|
||||||
#if 1
|
#if 1
|
||||||
SetPos(old_pos + a8::Vec2(nx, ny));
|
SetPos(old_pos + a8::Vec2(nx, ny));
|
||||||
if (!CheckCollision()) {
|
if (!CheckCollision()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user