Cleaned up NpcAct300.cpp
This commit is contained in:
parent
f1048b21aa
commit
e5b499ee67
1 changed files with 37 additions and 29 deletions
|
@ -116,12 +116,15 @@ void ActNpc302(NPCHAR *npc)
|
|||
case 0:
|
||||
npc->x -= 0x400;
|
||||
break;
|
||||
|
||||
case 1:
|
||||
npc->y -= 0x400;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
npc->x += 0x400;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
npc->y += 0x400;
|
||||
break;
|
||||
|
@ -230,9 +233,11 @@ void ActNpc304(NPCHAR *npc)
|
|||
case 1:
|
||||
npc->ani_no = 0;
|
||||
break;
|
||||
|
||||
case 10:
|
||||
npc->ani_no = 1;
|
||||
break;
|
||||
|
||||
case 20:
|
||||
npc->act_no = 21;
|
||||
npc->ani_no = 2;
|
||||
|
@ -247,6 +252,7 @@ void ActNpc304(NPCHAR *npc)
|
|||
if (npc->ani_no > 3)
|
||||
npc->ani_no = 2;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -322,6 +328,7 @@ void ActNpc306(NPCHAR *npc)
|
|||
npc->ani_no = 1;
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
if (++npc->act_wait > 8)
|
||||
{
|
||||
|
@ -367,6 +374,7 @@ void ActNpc307(NPCHAR *npc)
|
|||
npc->ani_no = 1;
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
if (++npc->act_wait > 12)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue