Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
romain22222 authored and BastLast committed Dec 18, 2024
1 parent ba2efa3 commit e540c39
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 33 deletions.
64 changes: 32 additions & 32 deletions Lib/src/constants/PetConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,39 +33,39 @@ export abstract class PetConstants {
PET_NORMAL: { [interactionKey: string]: PetInteraction }[],
PET_FEISTY: { [interactionKey: string]: PetInteraction }
} = {
PET_NORMAL: [
{},
{
WIN_ENERGY: {name: this.PET_INTERACTIONS_NAMES.WIN_ENERGY, probabilityWeight: 9},
WIN_FOOD: {name: this.PET_INTERACTIONS_NAMES.WIN_FOOD, probabilityWeight: 5},
NOTHING: {name: this.PET_INTERACTIONS_NAMES.NOTHING, probabilityWeight: 15},
WIN_POINTS: {name: this.PET_INTERACTIONS_NAMES.WIN_POINTS, probabilityWeight: 5}
},
{
WIN_LOVE: {name: this.PET_INTERACTIONS_NAMES.WIN_LOVE, probabilityWeight: 6}
},
{
WIN_MONEY: {name: this.PET_INTERACTIONS_NAMES.WIN_MONEY, probabilityWeight: 9},
WIN_TIME: {name: this.PET_INTERACTIONS_NAMES.WIN_TIME, probabilityWeight: 4}
},
{
WIN_HEALTH: {name: this.PET_INTERACTIONS_NAMES.WIN_HEALTH, probabilityWeight: 5}
},
{
WIN_ITEM: {name: this.PET_INTERACTIONS_NAMES.WIN_ITEM, probabilityWeight: 3}
},
{
WIN_BADGE: {name: this.PET_INTERACTIONS_NAMES.WIN_BADGE, probabilityWeight: 1}
PET_NORMAL: [
{},
{
WIN_ENERGY: {name: this.PET_INTERACTIONS_NAMES.WIN_ENERGY, probabilityWeight: 9},
WIN_FOOD: {name: this.PET_INTERACTIONS_NAMES.WIN_FOOD, probabilityWeight: 5},
NOTHING: {name: this.PET_INTERACTIONS_NAMES.NOTHING, probabilityWeight: 15},
WIN_POINTS: {name: this.PET_INTERACTIONS_NAMES.WIN_POINTS, probabilityWeight: 5}
},
{
WIN_LOVE: {name: this.PET_INTERACTIONS_NAMES.WIN_LOVE, probabilityWeight: 6}
},
{
WIN_MONEY: {name: this.PET_INTERACTIONS_NAMES.WIN_MONEY, probabilityWeight: 9},
WIN_TIME: {name: this.PET_INTERACTIONS_NAMES.WIN_TIME, probabilityWeight: 4}
},
{
WIN_HEALTH: {name: this.PET_INTERACTIONS_NAMES.WIN_HEALTH, probabilityWeight: 5}
},
{
WIN_ITEM: {name: this.PET_INTERACTIONS_NAMES.WIN_ITEM, probabilityWeight: 3}
},
{
WIN_BADGE: {name: this.PET_INTERACTIONS_NAMES.WIN_BADGE, probabilityWeight: 1}
}
],
PET_FEISTY: {
LOSE_HEALTH: {name: this.PET_INTERACTIONS_NAMES.LOSE_HEALTH, probabilityWeight: 5},
LOSE_MONEY: {name: this.PET_INTERACTIONS_NAMES.LOSE_MONEY, probabilityWeight: 5},
LOSE_TIME: {name: this.PET_INTERACTIONS_NAMES.LOSE_TIME, probabilityWeight: 5},
PET_FLEE: {name: this.PET_INTERACTIONS_NAMES.PET_FLEE, probabilityWeight: 1},
LOSE_LOVE: {name: this.PET_INTERACTIONS_NAMES.LOSE_LOVE, probabilityWeight: 5}
}
],
PET_FEISTY: {
LOSE_HEALTH: {name: this.PET_INTERACTIONS_NAMES.LOSE_HEALTH, probabilityWeight: 5},
LOSE_MONEY: {name: this.PET_INTERACTIONS_NAMES.LOSE_MONEY, probabilityWeight: 5},
LOSE_TIME: {name: this.PET_INTERACTIONS_NAMES.LOSE_TIME, probabilityWeight: 5},
PET_FLEE: {name: this.PET_INTERACTIONS_NAMES.PET_FLEE, probabilityWeight: 1},
LOSE_LOVE: {name: this.PET_INTERACTIONS_NAMES.LOSE_LOVE, probabilityWeight: 5}
}
};
};

static readonly BREED_COOLDOWN = 60 * 60 * 1000; // 1 hour

Expand Down
3 changes: 2 additions & 1 deletion Lib/src/constants/StringConstants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export class Sex {
readonly short: string;

readonly long: string;

constructor(short: string, long: string) {
Expand All @@ -14,5 +15,5 @@ export class StringConstants {
static readonly SEX = {
MALE: new Sex("m", "male"),
FEMALE: new Sex("f", "female")
}
};
}

0 comments on commit e540c39

Please sign in to comment.