added set_potion_known to player
This commit is contained in:
@ -344,3 +344,7 @@ void player_base::inventory::print(output *out, unsigned long known_potions) {
|
||||
static_cast<int>(curr) + INV_TOP + INV_Y_OFFSET},
|
||||
"->");
|
||||
}
|
||||
|
||||
void player_base::set_potion_known(const potion_type &type) {
|
||||
known_potions |= 1 << type;
|
||||
}
|
||||
|
@ -61,6 +61,8 @@ public:
|
||||
|
||||
long_result throw_potion(level *lvl,
|
||||
std::unique_ptr<potion> p, direction dir);
|
||||
|
||||
void set_potion_known(const potion_type &type);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user