Cleaned up NpcAct260.cpp

Also changed regex to "((//|\;)[^ \t\n]|(for|while|if|while|do|void|int|bool)\((for|while|if|while|do)\ \(.*\)\|\ \)|\(\ |//\ [a-z]|\ \ )|break;\n[\t]*case"
This commit is contained in:
Gabriel Ravier 2019-05-16 07:20:01 +02:00
parent 33071564a3
commit c64110cf05
No known key found for this signature in database
GPG key ID: 1E75F156884F3DCE

View file

@ -724,18 +724,22 @@ void ActNpc267(NPCHAR *npc)
case 8: case 8:
npc->act_no = 20; npc->act_no = 20;
break; break;
case 2: case 2:
case 7: case 7:
npc->act_no = 100; npc->act_no = 100;
break; break;
case 3: case 3:
case 6: case 6:
npc->act_no = 30; npc->act_no = 30;
break; break;
case 1: case 1:
case 9: case 9:
npc->act_no = 40; npc->act_no = 40;
break; break;
default: default:
npc->act_no = 15; npc->act_no = 15;
npc->act_wait = 0; npc->act_wait = 0;
@ -2165,6 +2169,7 @@ void ActNpc279(NPCHAR *npc)
npc->bits |= 4; npc->bits |= 4;
npc->ani_no = 0; npc->ani_no = 0;
break; break;
case 2: case 2:
npc->act_no = 100; npc->act_no = 100;
npc->bits |= 4; npc->bits |= 4;
@ -2178,6 +2183,7 @@ void ActNpc279(NPCHAR *npc)
npc->hit.top = 0x1000; npc->hit.top = 0x1000;
npc->hit.bottom = 0x1000; npc->hit.bottom = 0x1000;
break; break;
case 1: case 1:
npc->ani_no = 0; npc->ani_no = 0;
npc->act_no = 10; npc->act_no = 10;