Skip to content

Commit

Permalink
Added more names, also added ugly settimeout as there seems to be a r…
Browse files Browse the repository at this point in the history
…ace condition sometimes
  • Loading branch information
bdekok committed Mar 30, 2024
1 parent 93cf270 commit 4f3b730
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 4 deletions.
9 changes: 8 additions & 1 deletion src/constants/names/bobsled.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
// Mack Bobsleds
// Mack & Intamin Bobsleds
export default [
'Alpine Bobsled',
'Avalanche',
'Bob',
'Bobbahn',
'Disaster Transport',
'La Vibora',
'Munich Autobahn',
'Reptilian',
'Rolling Thunder',
'Sarajevo Bobsled',
'Schweizer Bobbahn',
"Screamin' Delta Demon",
'Trace Du Hourra',
] as const;
23 changes: 23 additions & 0 deletions src/constants/names/hybrid.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// RMC Hybrids
export default [
'ArieForce One',
'Goliath',
'Hakugei',
'Iron Gwazi',
'Iron Rattler',
'Joker',
'Lightning Rod',
'Medusa Steel Coaster',
'New Texas Giant',
'Outlaw Run',
'Steel Vengeance',
'Storm Chaser',
'Twisted Colossus',
'Twisted Cyclone',
'Twisted Timbers',
'Untamed',
'Wicked Cyclone',
"Wildcat's Revenge",
'Wildfire',
'Zadra',
];
15 changes: 14 additions & 1 deletion src/constants/names/hyper.ts
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
export default ['Big One', 'Desperado', 'Magnum XL-200', 'Titan MAX'];
// Arrow Hyper & Morgan Hyper
export default [
'Big One',
'Desperado',
'Magnum XL-200',
'Mamba',
'Phantom’s Revenge',
'Steel Eel',
'Steel Force',
'Steel Dragon 2000',
'Superman el Último Escape',
'Titan MAX',
'Wild Thing',
];
3 changes: 2 additions & 1 deletion src/constants/names/hyperTwister.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// B&M Hyper
// B&M Hyper & Giovanola Hyper
export default [
"Apollo's Chariot",
'Behemoth',
Expand All @@ -15,5 +15,6 @@ export default [
'Raging Bull',
'Shambhala',
'Silver Star',
'Titan',
'Thunder Striker',
];
7 changes: 7 additions & 0 deletions src/constants/names/singleRail.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default [
'Jersey Devil Coaster',
'RailBlazer',
'Stunt Pilot',
'Wonder Woman Flight of Courage',
'Wonder Woman Golden Lasso Coaster',
];
4 changes: 4 additions & 0 deletions src/constants/rollercoasterNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import poweredMineCoasterNames from './names/poweredMineRide';
import hyperTwisterCoasterNames from './names/hyperTwister';
import hyperCoasterNames from './names/hyper';
import miniSuspendedCoasterNames from './names/miniSuspended';
import hybridCoasterNames from './names/hybrid';
import singleRailCoasterNames from './names/singleRail';

type RollercoasterNames = { [key in RideType]?: Readonly<string[]> };

Expand Down Expand Up @@ -59,6 +61,7 @@ export const rollercoasterNames: RollercoasterNames = {
[RideType.RIDE_TYPE_LAY_DOWN_ROLLER_COASTER_ALT]: layDownCoasterNames,
[RideType.RIDE_TYPE_LOOPING_ROLLER_COASTER]: loopingCoasterNames,
[RideType.RIDE_TYPE_MINE_TRAIN_COASTER]: mineTrainCoasterNames,
[RideType.RIDE_TYPE_HYBRID_COASTER]: hybridCoasterNames,
[RideType.RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER]:
fourthDimensionCoasterNames,
[RideType.RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER_ALT]:
Expand All @@ -68,6 +71,7 @@ export const rollercoasterNames: RollercoasterNames = {
[RideType.RIDE_TYPE_STAND_UP_ROLLER_COASTER]: standupRollercoasterNames,
[RideType.RIDE_TYPE_STEEL_WILD_MOUSE]: steelWildMouseCoasterNames,
[RideType.RIDE_TYPE_MINE_RIDE]: poweredMineCoasterNames,
[RideType.RIDE_TYPE_SINGLE_RAIL_ROLLER_COASTER]: singleRailCoasterNames,
[RideType.RIDE_TYPE_STEEPLECHASE]: steepleChaseCoasterNames,
[RideType.RIDE_TYPE_SUSPENDED_SWINGING_COASTER]: suspendedSwiningCoasterNames,
[RideType.RIDE_TYPE_TWISTER_ROLLER_COASTER]: twisterCoasterNames,
Expand Down
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ const main = (): void => {
context.subscribe('action.execute', (event) => {
switch (event.action) {
case 'ridecreate': {
setRandomRideName(event.result);
context.setTimeout(() => {
setRandomRideName(event.result);
}, 50);
break;
}
default:
Expand Down

0 comments on commit 4f3b730

Please sign in to comment.