Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hatcatter committed Jul 31, 2023
2 parents 9ef0384 + 74581f8 commit 342d5f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
3 changes: 3 additions & 0 deletions hackem_changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

Hardfought hotfixes (released July 30, 2023)

Revert mplayer symbols reflect their actual race.
Revert Fix: Human NPCs didn't have the correct symbol. Fixes #396.
Revert Fix: Elven race wasn't getting the correct symbol.
Fix: Memory leaks when get_faux_artifact_obj is used.
Fix: Object lookup used total weight of a item stack in player's possession - not the base weight.
Fix: Object lookup leaking info for object's in player's possession.
Expand Down
20 changes: 0 additions & 20 deletions src/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -6907,8 +6907,6 @@ short raceidx;
if (mtmp->mnum == PM_HEALER || mtmp->mnum == PM_VALKYRIE
|| mtmp->mnum == PM_YEOMAN)
rptr->ralign = 0;

mtmp->data->mlet = S_CENTAUR;
break;
case PM_DOPPELGANGER:
rptr->ralign = 0;
Expand All @@ -6922,16 +6920,13 @@ short raceidx;
rptr->ralign = 0;
if (mtmp->mnum == PM_KNIGHT)
rptr->ralign = 3;

mtmp->data->mlet = S_HUMANOID;
break;
case PM_ELF:
rptr->ralign = rn2(3) ? 3 : 0;
if (mtmp->mnum == PM_HEALER)
rptr->ralign = 0;
if (mtmp->mnum == PM_KNIGHT || mtmp->mnum == PM_YEOMAN)
rptr->ralign = 3;
mtmp->data->mlet = S_HUMAN;
break;
case PM_GIANT:
/* Giants get a clobber attack */
Expand All @@ -6955,8 +6950,6 @@ short raceidx;
rptr->ralign = rn2(2) ? 0 : 3;
if (mtmp->mnum == PM_BARBARIAN || mtmp->mnum == PM_WIZARD)
rptr->ralign = rn2(2) ? 0 : -3;

mtmp->data->mlet = S_GIANT;
break;
case PM_GNOME:
rptr->ralign = 0;
Expand All @@ -6965,8 +6958,6 @@ short raceidx;
if (mtmp->mnum == PM_RANGER || mtmp->mnum == PM_ROGUE
|| mtmp->mnum == PM_WIZARD || mtmp->mnum == PM_PIRATE)
rptr->ralign = rn2(3) ? 0 : -3;

mtmp->data->mlet = S_GNOME;
break;
case PM_HOBBIT:
rptr->ralign = 0;
Expand All @@ -6975,8 +6966,6 @@ short raceidx;
if (mtmp->mnum == PM_ARCHEOLOGIST || mtmp->mnum == PM_PRIEST
|| mtmp->mnum == PM_PRIESTESS || mtmp->mnum == PM_YEOMAN)
rptr->ralign = rn2(3) ? 0 : 3;

mtmp->data->mlet = S_HUMANOID;
break;
case PM_HUMAN:
if (mtmp->mnum == PM_CONVICT || mtmp->mnum == PM_NECROMANCER)
Expand All @@ -6997,7 +6986,6 @@ short raceidx;
rptr->ralign = rn2(2) ? 3 : rn2(2) ? 0 : -3;
if (mtmp->mnum == PM_JEDI)
rptr->ralign = 3;
mtmp->data->mlet = S_HUMAN;
break;
case PM_ILLITHID:
/* Illithids get a tentacle attack */
Expand All @@ -7007,21 +6995,15 @@ short raceidx;
rptr->mattk[2].damd = 1;

rptr->ralign = -3;

mtmp->data->mlet = S_HUMANOID;
break;
case PM_ORC:
rptr->ralign = -3;

mtmp->data->mlet = S_ORC;
break;
case PM_TORTLE:
rptr->ralign = 0;
if (mtmp->mnum == PM_ARCHEOLOGIST || mtmp->mnum == PM_MONK
|| mtmp->mnum == PM_PRIEST || mtmp->mnum == PM_PRIESTESS)
rptr->ralign = rn2(4) ? 3 : 0;

mtmp->data->mlet = S_LIZARD;
break;
case PM_VAMPIRIC:
/* Vampires get a bite attack */
Expand All @@ -7031,8 +7013,6 @@ short raceidx;
rptr->mattk[2].damd = 6;

rptr->ralign = -3;

mtmp->data->mlet = S_VAMPIRE;
break;
}

Expand Down

0 comments on commit 342d5f7

Please sign in to comment.