1
This commit is contained in:
parent
701de97ef4
commit
2f392f315c
@ -7,23 +7,23 @@ const factory = require('./factory');
|
||||
|
||||
class FounderTag extends basewrap.BaseWrap {
|
||||
|
||||
#quality = 1
|
||||
quality = 1;
|
||||
|
||||
_init0 () {
|
||||
switch (this.rarity) {
|
||||
case 'Common':
|
||||
{
|
||||
this.#quality = 1;
|
||||
this.quality = 1;
|
||||
}
|
||||
break;
|
||||
case 'Rare':
|
||||
{
|
||||
this.#quality = 2;
|
||||
this.quality = 2;
|
||||
}
|
||||
break;
|
||||
case 'Legendary':
|
||||
{
|
||||
this.#quality = 3;
|
||||
this.quality = 3;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -32,10 +32,11 @@ class FounderTag extends basewrap.BaseWrap {
|
||||
}
|
||||
break;
|
||||
}
|
||||
console.log(this);
|
||||
}
|
||||
|
||||
getQuality() {
|
||||
return this.#quality;
|
||||
return this.quality;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user