mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-23 14:22:16 -05:00
Should re-fix freestanding ice traps
This commit is contained in:
parent
0e2530cd49
commit
f4a051fb90
@ -6104,14 +6104,14 @@ s32 func_8083E5A8(Player* this, GlobalContext* globalCtx) {
|
|||||||
this->getItemId = iREG(68);
|
this->getItemId = iREG(68);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->getItemId < GI_MAX) {
|
GetItemEntry giEntry;
|
||||||
GetItemEntry giEntry;
|
if (this->getItemEntry.objectId == OBJECT_INVALID) {
|
||||||
if (this->getItemEntry.objectId == OBJECT_INVALID) {
|
giEntry = ItemTable_Retrieve(this->getItemId);
|
||||||
giEntry = ItemTable_Retrieve(this->getItemId);
|
} else {
|
||||||
} else {
|
giEntry = this->getItemEntry;
|
||||||
giEntry = this->getItemEntry;
|
}
|
||||||
}
|
if ((giEntry.modIndex == MOD_NONE && this->getItemId < GI_MAX) ||
|
||||||
|
(giEntry.modIndex == MOD_RANDOMIZER && this->getItemId < RG_MAX)) {
|
||||||
if ((interactedActor != &this->actor) && !iREG(67)) {
|
if ((interactedActor != &this->actor) && !iREG(67)) {
|
||||||
interactedActor->parent = &this->actor;
|
interactedActor->parent = &this->actor;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user