osrs-tools
Version:
A comprehensive TypeScript library for Old School RuneScape (OSRS) data and utilities, including quest data, skill requirements, and game item information
70 lines • 2.03 kB
TypeScript
/**
* Leagues Overview and Types
*
* Leagues are seasonal variants of OSRS with time-limited servers featuring area restrictions,
* trade restrictions, boosted XP rates, and unique relics/masteries that alter gameplay.
*/
declare enum LeagueType {
TWISTED = "Twisted League",
TRAILBLAZER = "Trailblazer League",
SHATTERED_RELICS = "Shattered Relics League",
TRAILBLAZER_RELOADED = "Trailblazer Reloaded League",
RAGING_ECHOES = "Raging Echoes League",
DEMONIC_PACTS = "Demonic Pacts League"
}
declare enum TrophyTier {
BRONZE = "Bronze",
IRON = "Iron",
STEEL = "Steel",
MITHRIL = "Mithril",
ADAMANT = "Adamant",
RUNE = "Rune",
DRAGON = "Dragon"
}
interface LeagueInfo {
name: LeagueType;
number: number;
startDate: Date;
endDate: Date;
duration: number;
xpMultiplier: number;
maxDropRateMultiplier: number;
relicTiers: number;
maxUnlockedAreas: number;
hasAreaRestrictions: boolean;
hasFragments: boolean;
hasCombatMasteries: boolean;
hasEchoBosses: boolean;
startingArea?: string;
}
interface LeagueTask {
name: string;
difficulty: "Easy" | "Medium" | "Hard" | "Elite";
points: number;
type: "PvM" | "Skilling" | "Quest" | "Collection";
}
interface RelicFragment {
name: string;
effect: string;
tier: number;
combinesWith: string[];
}
interface LeagueReward {
name: string;
type: "Cosmetic" | "Pet" | "Trophy" | "Icon";
tier?: TrophyTier;
}
declare class League {
info: LeagueInfo;
tasks: LeagueTask[];
rewards: LeagueReward[];
constructor(info: LeagueInfo);
addTask(task: LeagueTask): void;
addReward(reward: LeagueReward): void;
getDuration(): number;
}
declare const LEAGUES_DATA: Record<LeagueType, LeagueInfo>;
declare const BRONZE_VETERAN_POINTS = 100;
export { League, LeagueType, TrophyTier, LEAGUES_DATA, BRONZE_VETERAN_POINTS };
export type { LeagueInfo, LeagueTask, LeagueReward, RelicFragment };
//# sourceMappingURL=Leagues.d.ts.map