This commit is contained in:
Ada18980 2021-08-19 14:54:07 -07:00 committed by GitHub
parent 6e80b57bc9
commit 7fe0911cce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,12 +92,14 @@ function KinkyDungeonUpdateFromData() {
for (let N = 0; N < inventory.length; N++) {
let item = inventory[N].split('/');
let i = 1;
let restraint = KinkyDungeonGetRestraintByName(item[i++]);
KinkyDungeonAddRestraint(restraint, 0, true); // Add the item
let createdrestraint = KinkyDungeonGetRestraintItem(restraint.Group);
if (createdrestraint)
createdrestraint.lock = ""; // Lock if applicable
if (item.length > 1) {
let i = 1;
let restraint = KinkyDungeonGetRestraintByName(item[i++]);
KinkyDungeonAddRestraint(restraint, 0, true); // Add the item
let createdrestraint = KinkyDungeonGetRestraintItem(restraint.Group);
if (createdrestraint)
createdrestraint.lock = ""; // Lock if applicable
}
}
KinkyDungeonUpdateStats(0);
KinkyDungeonDressPlayer();