some reformatting (2 of 4)

This commit is contained in:
PatR
2024-09-05 14:51:21 -07:00
parent 50412ba53b
commit aa043f0ddf
17 changed files with 253 additions and 179 deletions

View File

@@ -225,9 +225,12 @@ makedog(void)
if (!svc.context.startingpet_mid) {
svc.context.startingpet_mid = mtmp->m_id;
if (!u.uroleplay.pauper) {
/* initial horses already wear a saddle (unless hero is a pauper) */
if (pettype == PM_PONY && !!(otmp = mksobj(SADDLE, TRUE, FALSE))) {
otmp->dknown = otmp->bknown = otmp->rknown = 1;
/* initial horses already wear saddle (unless hero is a pauper) */
if (pettype == PM_PONY
&& (otmp = mksobj(SADDLE, TRUE, FALSE)) != 0) {
/* pseudo initial inventory; saddle is not actually in hero's
* invent so assume that update_inventory() isn't needed */
fully_identify_obj(otmp);
put_saddle_on_mon(otmp, mtmp);
}
}