pokerogue/src/system/challenge-data.ts
flx-sta 2bd07cb84e
fix and optimize imports (#4061)
- 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>
2024-09-07 21:37:37 -07:00

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);
}
}