Permalink
Browse files

XEEN: Implement sets & checks for _questItems

  • Loading branch information...
dreammaster committed Dec 29, 2017
1 parent fb73c1a commit 45891aed916f5377c1a8fed8c02ce5ec32ea52e4
Showing with 5 additions and 5 deletions.
  1. +2 −2 engines/xeen/party.cpp
  2. +3 −3 engines/xeen/scripts.cpp
View
@@ -860,7 +860,7 @@ bool Party::giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int
break;
}
} else {
error("Invalid id");
_questItems[takeVal - 82]--;
}
}
if (!found)
@@ -1129,7 +1129,7 @@ bool Party::giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int
return false;
}
} else {
error("Invalid id");
_questItems[giveVal - 82]++;
}
return true;
}
View
@@ -1248,7 +1248,7 @@ bool Scripts::cmdGiveEnchanted(ParamsIterator &params) {
return true;
} else {
error("Invalid id");
party._questItems[id - 82]++;
}
}
@@ -1570,8 +1570,8 @@ bool Scripts::ifProc(int action, uint32 val, int mode, int charIndex) {
}
}
}
} else {
error("Invalid id");
} else if (party._questItems[val - 82]) {
v = val;
}
break;
case 25:

0 comments on commit 45891ae

Please sign in to comment.