Skip to content

Commit 7c0b32d

Browse files
committed
expand defeated counts
1 parent 35b21f8 commit 7c0b32d

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

TODO

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
bugs
22
----
3+
rarity
4+
you did not defeat
5+
shooting over a bridge blew it up
36

47
todo
58
----

src/wid_statistics.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ static void wid_statistics_show_defeated(Gamep g, Levelp l, Thingp player)
120120
//
121121
for (auto i = 1; i < TP_ID_MAX; i++) {
122122

123-
auto *monst_tp = tp_find(i);
124-
if (monst_tp == nullptr) {
123+
auto *defeated_tp = tp_find(i);
124+
if (defeated_tp == nullptr) {
125125
continue;
126126
}
127127

128-
if (! tp_is_monst(monst_tp)) {
128+
if (! tp_is_monst(defeated_tp) && ! tp_is_mob(defeated_tp) && ! tp_is_minion(defeated_tp)) {
129129
continue;
130130
}
131131

@@ -138,10 +138,10 @@ static void wid_statistics_show_defeated(Gamep g, Levelp l, Thingp player)
138138
auto s = std::format("{:<3}", player_struct->defeated[ i ]);
139139

140140
s += " %%tp=";
141-
s += tp_name(monst_tp);
141+
s += tp_name(defeated_tp);
142142
s += "$";
143143
s += " ";
144-
s += std::format("{:<20}", tp_name(monst_tp));
144+
s += std::format("{:<20}", tp_name(defeated_tp));
145145

146146
if (line.empty()) {
147147
line = s;

0 commit comments

Comments
 (0)