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