mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-17 12:59:25 +02:00
Apply Kev's suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
870fafa0bc
commit
1373e07fcc
@ -103,7 +103,7 @@ export const ANTI_VARIANCE_WEIGHT_MODIFIER = 15;
|
|||||||
export const FAKE_TITLE_LOGO_CHANCE = 10000;
|
export const FAKE_TITLE_LOGO_CHANCE = 10000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ceiling on friendshp amount that can be reached through the use of rare candies.
|
* The ceiling on friendship amount that can be reached through the use of rare candies.
|
||||||
* Using rare candies will never increase friendship beyond this value.
|
* Using rare candies will never increase friendship beyond this value.
|
||||||
*/
|
*/
|
||||||
export const RARE_CANDY_FRIENDSHIP_CAP = 200;
|
export const RARE_CANDY_FRIENDSHIP_CAP = 200;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import type { Brander } from "#types/type-helpers";
|
import type { Brander } from "#types/type-helpers";
|
||||||
|
|
||||||
export type RibbonFlag = (number & Brander<"RibbonFlag">) | 0;
|
export type RibbonFlag = (number & Brander<"RibbonFlag">) | 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -8,7 +8,7 @@ import { isNullOrUndefined } from "#utils/common";
|
|||||||
* Award one or more ribbons to a species and its pre-evolutions
|
* Award one or more ribbons to a species and its pre-evolutions
|
||||||
*
|
*
|
||||||
* @param id - The ID of the species to award ribbons to
|
* @param id - The ID of the species to award ribbons to
|
||||||
* @param ribbons The ribbon(s) to award (use bitwise OR to combine multiple)
|
* @param ribbons - The ribbon(s) to award (use bitwise OR to combine multiple)
|
||||||
*/
|
*/
|
||||||
export function awardRibbonsToSpeciesLine(id: SpeciesId, ribbons: RibbonFlag): void {
|
export function awardRibbonsToSpeciesLine(id: SpeciesId, ribbons: RibbonFlag): void {
|
||||||
const dexData = globalScene.gameData.dexData;
|
const dexData = globalScene.gameData.dexData;
|
||||||
|
Loading…
Reference in New Issue
Block a user