mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-19 11:21:31 +02:00
fix scion pickup
This commit is contained in:
18
src/format.h
18
src/format.h
@@ -1818,6 +1818,18 @@ namespace TR {
|
|||||||
(type >= STONE_ITEM_1 && type <= STONE_ITEM_4);
|
(type >= STONE_ITEM_1 && type <= STONE_ITEM_4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool isPuzzleItem(Type type) {
|
||||||
|
return type >= PUZZLE_1 && type <= PUZZLE_4;
|
||||||
|
}
|
||||||
|
|
||||||
|
static bool isKeyItem(Type type) {
|
||||||
|
return type >= KEY_ITEM_1 && type <= KEY_ITEM_4;
|
||||||
|
}
|
||||||
|
|
||||||
|
static bool isCrossLevelItem(Type type) {
|
||||||
|
return !isPuzzleItem(type) && !isKeyItem(type) && (type != LEADBAR);
|
||||||
|
}
|
||||||
|
|
||||||
bool isPickup() const {
|
bool isPickup() const {
|
||||||
return isPickup(type);
|
return isPickup(type);
|
||||||
}
|
}
|
||||||
@@ -1884,7 +1896,9 @@ namespace TR {
|
|||||||
case KEY_ITEM_4 : return INV_KEY_4;
|
case KEY_ITEM_4 : return INV_KEY_4;
|
||||||
|
|
||||||
case LEADBAR : return INV_LEADBAR;
|
case LEADBAR : return INV_LEADBAR;
|
||||||
//case Entity::SCION : return Entity::INV_SCION;
|
case SCION_PICKUP_QUALOPEC :
|
||||||
|
case SCION_PICKUP_DROP :
|
||||||
|
case SCION_PICKUP_HOLDER : return Entity::INV_SCION;
|
||||||
default : return type;
|
default : return type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1915,7 +1929,7 @@ namespace TR {
|
|||||||
case INV_KEY_4 : return KEY_ITEM_4;
|
case INV_KEY_4 : return KEY_ITEM_4;
|
||||||
|
|
||||||
case INV_LEADBAR : return LEADBAR;
|
case INV_LEADBAR : return LEADBAR;
|
||||||
//case Entity::SCION : return Entity::INV_SCION;
|
case INV_SCION : return SCION_PICKUP_DROP;
|
||||||
default : return type;
|
default : return type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user