WAGE: Implement handleInventoryCommand()
This commit is contained in:
parent
b066a592ee
commit
2dc5841fcc
3 changed files with 24 additions and 1 deletions
|
@ -483,4 +483,12 @@ const char *Chr::getDefiniteArticle(bool capitalize) {
|
|||
return "";
|
||||
}
|
||||
|
||||
bool Chr::isWearing(Obj *obj) {
|
||||
for (int i = 0; i < NUMBER_OF_ARMOR_TYPES; i++)
|
||||
if (_armor[i] == obj)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
} // End of namespace Wage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue