Skip to content

Commit

Permalink
Update types, capitalise titles, and add winter hazard title
Browse files Browse the repository at this point in the history
  • Loading branch information
leydel committed Dec 21, 2024
1 parent d138a1c commit 0a8ff0a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 28 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rlss-gg/items",
"version": "1.19.0",
"version": "1.19.1",
"description": "RL Sideswipe items database an an NPM package",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
51 changes: 26 additions & 25 deletions src/items/Title.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,42 @@
import { Game } from "../types/Game"
import { Title } from "./BaseItem"

export const BigBoom = new Title("Big Boom", "Sport")
export const Hero = new Title("Hero", "Sport")
export const PrimeCut = new Title("Prime Cut", "Special")
export const SureStriker = new Title("Sure Striker", "Special")
export const Technician = new Title("Technician", "Special")
export const Sideswiper = new Title("Sideswiper", "Deluxe")
export const ArtfulDodger = new Title("Artful Dodger", "Import")
export const NewBlood = new Title("New Blood", "Import")
export const Showboat = new Title("Showboat", "Import")
export const TwentyXX2rbo2sday = new Title("20XX 2rbo 2sday", "Exotic")
export const ExtraOrdinary = new Title("Extra Ordinary", "Black Market")
export const PocketLeagueMaster = new Title("Pocket League Master", "Black Market")
export const InfiniteRocketeer = new Title("Infinite Rocketeer", "Black Market")
export const PartyOn = new Title("Party On!", "Luxury")
export const Developer = new Title("Developer", "Premium")
export const FirstStreamer = new Title("First Streamer", "Premium")
export const Moderator = new Title("Moderator", "Premium")
export const BigBoom = new Title("BIG BOOM", "Sport")
export const Hero = new Title("HERO", "Sport")
export const PrimeCut = new Title("PRIME CUT", "Special")
export const SureStriker = new Title("SURE STRIKER", "Special")
export const Technician = new Title("TECHNICIAN", "Special")
export const Sideswiper = new Title("SIDESWIPER", "Deluxe")
export const ArtfulDodger = new Title("ARTFUL DODGER", "Import")
export const NewBlood = new Title("NEW BLOOD", "Import")
export const Showboat = new Title("SHOWBOAT", "Import")
export const TwentyXX2rbo2sday = new Title("20XX 2URBO 2SDAY", "Exotic")
export const ExtraOrdinary = new Title("EXTRA ORDINARY", "Black Market")
export const PocketLeagueMaster = new Title("POCKET LEAGUE MASTER", "Black Market")
export const InfiniteRocketeer = new Title("INFINITE ROCKETEER", "Black Market")
export const PartyOn = new Title("PARTY ON!", "Luxury")
export const Developer = new Title("DEVELOPER", "Premium")
export const FirstStreamer = new Title("FIRST STREAMER", "Premium")
export const Moderator = new Title("MODERATOR", "Premium")

// S17
export const LongTimeFan = new Title("Long-Time Fan", "Luxury")
export const LongTimeFan = new Title("LONG-TIME FAN", "Luxury")

// S18
export const StreetKid = new Title("Street Kid", "Luxury")
export const CityRat = new Title("City Rat", "Luxury")
export const NightOwl = new Title("Night Owl", "Luxury")
export const DarkSider = new Title("Dark Sider", "Luxury")
export const ThirdSwipeversary = new Title("Third Swipeversary", "Exotic")
export const StreetKid = new Title("STREET KID", "Luxury")
export const CityRat = new Title("CITY RAT", "Luxury")
export const NightOwl = new Title("NIGHT OWL", "Luxury")
export const DarkSider = new Title("DARK SIDER", "Luxury")
export const ThirdSwipeversary = new Title("THIRD SWIPEVERSARY", "Exotic")

// S19
export const BigfootWitness = new Title("BIGFOOT WITNESS", "Special")
export const EggnogSpecialist = new Title("EGGNOG SPECIALIST", "Sport")
export const LittleHelper = new Title("LITTLE HELPER", "Luxury")
export const ColdWishes = new Title("COLD WISHES", "Luxury")
export const GlossySnake = new Title("GLOSSY SNAKE", "Luxury")
export const WinterHazard = new Title("WINTER HAZARD", "Special")

// Season Rewards
export const Season = (rank: Game.CompetitiveRank, season: Game.Season) => (Number(season) === season ? new Title(`S${season} ${rank}`, "Luxury") : new Title(`${season} ${rank}`, "Special"))
export const SeasonLtm = (rank: Game.CompetitiveRank, season: Game.ReleaseSeason, mode: Game.Mode) => new Title(`S${season} ${mode} ${rank}`, "Luxury")
export const Season = (rank: Game.CompetitiveRank, season: Game.Season) => (Number(season) === season ? new Title(`S${season} ${rank.toUpperCase()}`, "Luxury") : new Title(`${season} ${rank.toUpperCase()}`, "Special"))
export const SeasonLtm = (rank: Game.CompetitiveRank, season: Game.ReleaseSeason, mode: Game.LtmMode) => new Title(`S${season} ${mode.toUpperCase()} ${rank.toUpperCase()}`, "Luxury")
2 changes: 1 addition & 1 deletion src/types/Game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export namespace Game {
export type Season = EarlySeason | ReleaseSeason

export type RegularMode = "Duel" | "Doubles" | "Mutator Madness"
export type LtmMode = "Hoops" | "Volleyball" | "Threes" | "Heatseeker"
export type LtmMode = "Hoops" | "Volleyball" | "Threes" | "Heatseeker" | "Squash"
export type Mode = RegularMode | LtmMode
}
2 changes: 1 addition & 1 deletion src/types/Item.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export namespace Item {
export type Rarity = "Default" | "Currency" | "Base" | "Sport" | "Special" | "Deluxe" | "Import" | "Exotic" | "Black Market" | "Luxury" | "Premium"
export type Rarity = "Base" | "Sport" | "Special" | "Deluxe" | "Import" | "Exotic" | "Black Market" | "Luxury" | "Premium"

export type Paint = "Black" | "Burnt Sienna" | "Cobalt" | "Crimson" | "Forest Green" | "Grey" | "Lime" | "Orange" | "Pink" | "Purple" | "Saffron" | "Sky Blue" | "Titanium White"

Expand Down

0 comments on commit 0a8ff0a

Please sign in to comment.