mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-22 04:06:33 +01:00
Remove bare hand damage in favor of unarmed skill proficiency
This commit is contained in:
parent
3fd48b60f6
commit
cc342ef45c
10 changed files with 138 additions and 121 deletions
9
src/db.c
9
src/db.c
|
|
@ -1552,10 +1552,10 @@ static void parse_simple_mob(FILE *mob_f, int i, int nr)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
if (sscanf(line, " %d %dd%d+%d %dd%d ",
|
||||
t, t + 1, t + 2, t + 3, t + 4, t + 5) != 6) {
|
||||
if (sscanf(line, " %d %dd%d+%d ",
|
||||
t, t + 1, t + 2, t + 3) != 4) {
|
||||
log("SYSERR: Format error in mob #%d, first line after S flag\n"
|
||||
"...expecting line of form '# #d#+# #d#'", nr);
|
||||
"...expecting line of form '# #d#+#'", nr);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
@ -1570,9 +1570,6 @@ static void parse_simple_mob(FILE *mob_f, int i, int nr)
|
|||
GET_MAX_MANA(mob_proto + i) = 10;
|
||||
GET_MAX_MOVE(mob_proto + i) = 50;
|
||||
|
||||
mob_proto[i].mob_specials.damnodice = t[4];
|
||||
mob_proto[i].mob_specials.damsizedice = t[5];
|
||||
|
||||
if (!get_line(mob_f, line)) {
|
||||
log("SYSERR: Format error in last line of mob #%d\n"
|
||||
"...expecting line of form '# # #', but file ended!", nr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue