Mercurial > hg > early-roguelike
comparison rogue4/monsters.c @ 304:e52a8a7ad4c5
Fix many compiler warnings.
There should only be two changes in behavior:
arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly
applied to characters who are not monks instead of monks who are not
empty-handed.
urogue/fight.c: fixed an interaction with the "debug" macro that could
cause the wrong message to be displayed.
| author | John "Elwin" Edwards |
|---|---|
| date | Wed, 14 Apr 2021 18:55:33 -0400 |
| parents | 1b73a8641b37 |
| children |
comparison
equal
deleted
inserted
replaced
| 303:e06ebc407615 | 304:e52a8a7ad4c5 |
|---|---|
| 73 lev_add = 0; | 73 lev_add = 0; |
| 74 attach(mlist, tp); | 74 attach(mlist, tp); |
| 75 tp->t_type = type; | 75 tp->t_type = type; |
| 76 tp->t_disguise = type; | 76 tp->t_disguise = type; |
| 77 tp->t_pos = *cp; | 77 tp->t_pos = *cp; |
| 78 tp->t_oldch = mvinch(cp->y, cp->x); | 78 tp->t_oldch = mvinch(cp->y, cp->x) & A_CHARTEXT; |
| 79 tp->t_room = roomin(cp); | 79 tp->t_room = roomin(cp); |
| 80 moat(cp->y, cp->x) = tp; | 80 moat(cp->y, cp->x) = tp; |
| 81 mp = &monsters[tp->t_type-'A']; | 81 mp = &monsters[tp->t_type-'A']; |
| 82 tp->t_stats.s_lvl = mp->m_stats.s_lvl + lev_add; | 82 tp->t_stats.s_lvl = mp->m_stats.s_lvl + lev_add; |
| 83 tp->t_stats.s_maxhp = tp->t_stats.s_hpt = roll(tp->t_stats.s_lvl, 8); | 83 tp->t_stats.s_maxhp = tp->t_stats.s_hpt = roll(tp->t_stats.s_lvl, 8); |
