Add egg logic and hatching screen (WiP) and end biome arena BG
This commit is contained in:
1 parent
f4ad9546c0
commit
71fdafe8fb
31 files changed
+2204
-15
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { ModifierTier } from "../modifier/modifier-type";
|
||||
|
||||
export const EGG_SEED = 1073741824;
|
||||
|
||||
export enum GachaType {
|
||||
LEGENDARY,
|
||||
TYPE,
|
||||
SHINY
|
||||
}
|
||||
|
||||
export class Egg {
|
||||
public id: integer;
|
||||
public tier: ModifierTier;
|
||||
public gachaType: GachaType;
|
||||
public timestamp: integer;
|
||||
|
||||
constructor(id: integer, gachaType: GachaType, timestamp: integer) {
|
||||
this.id = id;
|
||||
this.tier = Math.floor(id / EGG_SEED);
|
||||
this.gachaType = gachaType;
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user