Skip to content

Commit

Permalink
eslint fixes #2273
Browse files Browse the repository at this point in the history
  • Loading branch information
romain22222 committed Jan 15, 2025
1 parent 2a8e194 commit ccafcf9
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion Discord/src/commands/mission/MissionShop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function handleMissionShopMoney(packet: CommandMissionShopMoney, co
}

export async function handleMissionShopKingsFavor(context: PacketContext): Promise<void> {
await handleBasicMissionShopItem(context, "commands:shop.shopItems.kingsFavor.giveDescription", {thousand_points: Constants.MISSION_SHOP.THOUSAND_POINTS});
await handleBasicMissionShopItem(context, "commands:shop.shopItems.kingsFavor.giveDescription", {thousandPoints: Constants.MISSION_SHOP.THOUSAND_POINTS});
}

export async function handleLovePointsValueShopItem(packet: CommandMissionShopPetInformation, context: PacketContext): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion Discord/src/commands/player/ShopCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ async function manageBuyoutConfirmation(packet: ReactionCollectorCreationPacket,
i18n.t(`commands:shop.shopItems.${shopItemTypeToId(shopItemId)}.info`, {
lng: interaction.userLanguage,
kingsMoneyAmount: data.additionnalShopData?.gemToMoneyRatio,
thousand_points: Constants.MISSION_SHOP.THOUSAND_POINTS,
thousandPoints: Constants.MISSION_SHOP.THOUSAND_POINTS
})
}`)
],
Expand Down
4 changes: 2 additions & 2 deletions Lang/fr/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,9 @@
},
"kingsFavor": {
"name": "{emote:unitValues.score} Ferveur du roi",
"info": "Vous octroie {{thousand_points}} points. Ne peut être utilisé qu'une fois par semaine.",
"info": "Vous octroie {{thousandPoints}} points. Ne peut être utilisé qu'une fois par semaine.",
"giveTitle": "{{pseudo}}, achat effectué !",
"giveDescription": "Vous avez reçu {{thousand_points}} {emote:unitValues.score}. À la semaine prochaine pour une nouvelle ferveur !"
"giveDescription": "Vous avez reçu {{thousandPoints}} {emote:unitValues.score}. À la semaine prochaine pour une nouvelle ferveur !"
},
"lovePointsValue": {
"name": "{emote:shopItems.lovePointsValue} Vétérinaire de la cour",
Expand Down
64 changes: 32 additions & 32 deletions Lib/src/constants/PetConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,39 +39,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

0 comments on commit ccafcf9

Please sign in to comment.