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