mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-30 00:47:19 +02:00
Level 1 limitation for NPC's addition
This commit is contained in:
parent
4f2e68a369
commit
6a743b5276
4 changed files with 18 additions and 30 deletions
4
src/db.c
4
src/db.c
|
|
@ -1559,7 +1559,9 @@ static void parse_simple_mob(FILE *mob_f, int i, int nr)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
GET_LEVEL(mob_proto + i) = t[0];
|
||||
if (t[0] != 1)
|
||||
log("INFO: Forcing mob #%d level from %d to 1 per level lock.", nr, t[0]);
|
||||
GET_LEVEL(mob_proto + i) = 1;
|
||||
|
||||
/* max hit = 0 is a flag that H, M, V is xdy+z */
|
||||
GET_MAX_HIT(mob_proto + i) = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue