mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
WAGE: Simplify armor check
This commit is contained in:
parent
63d29ae809
commit
ac15210b27
@ -495,16 +495,7 @@ void WageEngine::takeObj(Obj *obj) {
|
||||
|
||||
_world->move(obj, _world->_player);
|
||||
int type = _world->_player->wearObjIfPossible(obj);
|
||||
if (type == Chr::HEAD_ARMOR) {
|
||||
snprintf(buf, 256, "You are now wearing the %s.", obj->_name.c_str());
|
||||
appendText(buf);
|
||||
} else if (type == Chr::BODY_ARMOR) {
|
||||
snprintf(buf, 256, "You are now wearing the %s.", obj->_name.c_str());
|
||||
appendText(buf);
|
||||
} else if (type == Chr::SHIELD_ARMOR) {
|
||||
snprintf(buf, 256, "You are now wearing the %s.", obj->_name.c_str());
|
||||
appendText(buf);
|
||||
} else if (type == Chr::MAGIC_ARMOR) {
|
||||
if (type == Chr::BODY_ARMOR || type == Chr::SHIELD_ARMOR || type == Chr::MAGIC_ARMOR) {
|
||||
snprintf(buf, 256, "You are now wearing the %s.", obj->_name.c_str());
|
||||
appendText(buf);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user