Skip to content

Commit

Permalink
Generate recall for everburning lights
Browse files Browse the repository at this point in the history
  • Loading branch information
backwardsEric authored and NickMcConnell committed Sep 24, 2024
1 parent 9e8b45a commit 56f1a6c
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions src/obj-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -1913,18 +1913,28 @@ static void describe_flavor_text(textblock *tb, const struct object *obj,
*/
static bool describe_ego(textblock *tb, const struct ego_item *ego)
{
if (kf_has(ego->kind_flags, KF_RAND_HI_RES))
bool something = false;

if (kf_has(ego->kind_flags, KF_RAND_HI_RES)) {
something = true;
textblock_append(tb, "It provides one random higher resistance. ");
else if (kf_has(ego->kind_flags, KF_RAND_SUSTAIN))
} else if (kf_has(ego->kind_flags, KF_RAND_SUSTAIN)) {
something = true;
textblock_append(tb, "It provides one random sustain. ");
else if (kf_has(ego->kind_flags, KF_RAND_POWER))
} else if (kf_has(ego->kind_flags, KF_RAND_POWER)) {
something = true;
textblock_append(tb, "It provides one random ability. ");
else if (kf_has(ego->kind_flags, KF_RAND_RES))
} else if (kf_has(ego->kind_flags, KF_RAND_RES)) {
something = true;
textblock_append(tb, "It provides one random resistance. ");
else
return false;
}
if (of_has(ego->flags, OF_NO_FUEL)
&& of_has(ego->flags_off, OF_TAKES_FUEL)) {
something = true;
textblock_append(tb, "It burns forever without fuel. ");
}

return true;
return something;
}

/**
Expand Down

0 comments on commit 56f1a6c

Please sign in to comment.