Skip to content

Commit

Permalink
Fixed a couple of minor bugs
Browse files Browse the repository at this point in the history
With giving items from a bag, and a grammatical bug.
  • Loading branch information
varkor committed Jan 13, 2016
1 parent 5331e66 commit 140e444
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion battle/scripts/objects/general/bag.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function bag (items) {

self.give = function (index, poke) {
var item = self.items[index], taken = null;
self.items.remove(index);
self.remove(index);
if (poke.item !== null) {
taken = self.add(poke.item);
poke.item = null;
Expand Down
3 changes: 2 additions & 1 deletion battle/scripts/objects/general/pokemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,8 @@ function pokemon (data, validate) {
};

self.pronoun = function (capitalised) {
return (self.gender === "male" ? "he" : self.gender === "female" ? "she" : "it");
var word = (self.gender === "male" ? "he" : self.gender === "female" ? "she" : "it");
return (capitalised ? capitalise(word) : word);
};
self.possessivePronoun = function (capitalised) {
var word = (self.gender === "male" ? "his" : self.gender === "female" ? "her" : "its");
Expand Down

0 comments on commit 140e444

Please sign in to comment.