1
This commit is contained in:
parent
49f993855b
commit
701de97ef4
@ -7,6 +7,37 @@ const factory = require('./factory');
|
||||
|
||||
class FounderTag extends basewrap.BaseWrap {
|
||||
|
||||
#quality = 1
|
||||
|
||||
_init0 () {
|
||||
switch (this.rarity) {
|
||||
case 'Common':
|
||||
{
|
||||
this.#quality = 1;
|
||||
}
|
||||
break;
|
||||
case 'Rare':
|
||||
{
|
||||
this.#quality = 2;
|
||||
}
|
||||
break;
|
||||
case 'Legendary':
|
||||
{
|
||||
this.#quality = 3;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
assert(false, 'unknow rarity');
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
getQuality() {
|
||||
return this.#quality;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = FounderTag;
|
||||
|
Loading…
x
Reference in New Issue
Block a user