mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-10-04 20:27:14 +02:00
* eslint config + packages
* updated eslint config
* fix the issue eslint adding ;;;; at interfaces
* first round with eslint --fix .
* removed config for unused export
* Revert "first round with eslint --fix ."
This reverts commit 77a88e0895
.
* removed config for camelCase
* for real this time, first round of eslint --fix .
* halfway to manual eslint fix
* eslint done
* added "how to setup" the hook to eslint --fix each new file before commit (if wanted)
* removed eslintrc config file duplicat
* fix human error + ignore build folder + merge overrides
* added curly brace style + eslint
* applied double quote linter rule
* added lefthook
* test precommit
* test precommit
* test precommit
* test precommit
* test precommit
* test precommit
* test precommit
* github action to run eslint
* added node_modules to ignore eslint
* different action for typescript
* no need for different glob (default src)
* node 20
* node 20
* removed no longer needed install file
* remove hooks part from README
* eslint fixes
---------
Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
19 lines
344 B
TypeScript
19 lines
344 B
TypeScript
export type Variant = 0 | 1 | 2;
|
|
|
|
export type VariantSet = [Variant, Variant, Variant];
|
|
|
|
export const variantData: any = {};
|
|
|
|
export const variantColorCache = {};
|
|
|
|
export function getVariantTint(variant: Variant): integer {
|
|
switch (variant) {
|
|
case 0:
|
|
return 0xf8c020;
|
|
case 1:
|
|
return 0x20f8f0;
|
|
case 2:
|
|
return 0xe81048;
|
|
}
|
|
}
|