mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-11 10:45:34 +00:00
- remove any `.js` extension imports - remove unncessary dynamic imports of `modifier.ts` file. The file was being imported statically & dynamically. Made it pure static - increase vite chunk-size warning limit Co-authored-by: Mumble <171087428+frutescens@users.noreply.github.com>
18 lines
384 B
TypeScript
18 lines
384 B
TypeScript
import { Challenge, copyChallenge } from "#app/data/challenge";
|
|
|
|
export default class ChallengeData {
|
|
public id: integer;
|
|
public value: integer;
|
|
public severity: integer;
|
|
|
|
constructor(source: Challenge | any) {
|
|
this.id = source.id;
|
|
this.value = source.value;
|
|
this.severity = source.severity;
|
|
}
|
|
|
|
toChallenge(): Challenge {
|
|
return copyChallenge(this);
|
|
}
|
|
}
|