Skip to content

Commit

Permalink
Implemented Multitype
Browse files Browse the repository at this point in the history
--HG--
extra : rebase_source : 00846eb157a5d76d8fc1dc79bef826f71fda7fa9
  • Loading branch information
Carlos Fernandez committed Oct 20, 2010
1 parent 4f1fe14 commit 474a1bd
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions resources/abilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -1850,3 +1850,32 @@ makeAbility({
return indirect ? 0 : delta;
}
});

/*******************
* Multitype
*******************/
makeAbility({
name: "Multitype",
informActivate : function() {
var subject = this.subject;
if (!subject.item || !subject.item.plate_) {
return;
}

var type = subject.item.type_;
var effect = new StatusEffect("MultitypeEffect");
effect.name = Text.types(type);
effect.type_ = type;
effect.applyEffect = function() {
this.subject.setTypes([this.type_]);
return true;
};
effect.informRemoveItem = function() {
return true;
};
effect.switchOut = function() {
return true;
};
subject.applyStatus(subject, effect);
}
});

0 comments on commit 474a1bd

Please sign in to comment.