mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Merge branch 'fix/crash-on-slash-eyes' into 'master'
Fix a crash on `/eyes` when the eyes don't have properties See merge request BondageProjects/Bondage-College!4004
This commit is contained in:
commit
554a306901
1 changed files with 3 additions and 2 deletions
|
@ -535,9 +535,10 @@ const CommonCommands = [
|
|||
DialogCurrentExpr = DialogFacialExpressions.find(FE => FE.Group == "Eyes");
|
||||
}
|
||||
DialogCurrentExpr.CurrentExpression = NewExpression;
|
||||
|
||||
// Apply new expression only to eyes that are opened
|
||||
let LeftClosed = InventoryGet(Player, "Eyes").Property.Expression == "Closed";
|
||||
let RightClosed = InventoryGet(Player, "Eyes2").Property.Expression == "Closed";
|
||||
let LeftClosed = InventoryGetItemProperty(InventoryGet(Player, "Eyes"), "Expression") === "Closed";
|
||||
let RightClosed = InventoryGetItemProperty(InventoryGet(Player, "Eyes2"), "Expression") === "Closed";
|
||||
if (!LeftClosed) CharacterSetFacialExpression(Player, "Eyes1", NewExpression);
|
||||
if (!RightClosed) CharacterSetFacialExpression(Player, "Eyes2", NewExpression);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue