Skip to content

Commit

Permalink
Minor website cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thommcgrath committed Jan 30, 2024
1 parent 14aca7f commit 9c47756
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
3 changes: 1 addition & 2 deletions Website/api/slack/commands/createcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
$productId = BeaconShop::GetProductByTag('USD', 'ArkSA', 'Base');
break;
case 'palworld':
case 'minimal':
$productId = BeaconShop::GetProductByTag('USD', 'BeaconMinimal', 'Base');
$productId = BeaconShop::GetProductByTag('USD', 'Palworld', 'Base');
break;
default:
PostReply('Unknown game_id value.');
Expand Down
3 changes: 1 addition & 2 deletions Website/api/slack/commands/grant.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
case 'curator':
$product = BeaconShop::GetProductByTag('USD', 'Curator', 'Base');
break;
case 'minimal':
case 'palworld':
$product = BeaconShop::GetProductByTag('USD', 'BeaconMinimal', 'Base');
$product = BeaconShop::GetProductByTag('USD', 'Palworld', 'Base');
break;
default:
PostReply('Unknown game_id value.');
Expand Down
14 changes: 0 additions & 14 deletions Website/framework/classes/BeaconCommon.php
Original file line number Diff line number Diff line change
Expand Up @@ -1045,20 +1045,6 @@ public static function StandardizeGameId(string $gameId): string {
}
return '';
}

public static function GameIdToName(string $gameId): string {
switch (strtolower(trim($gameId))) {
case 'ark':
return 'Ark: Survival Evolved';
case 'arksa':
return 'Ark: Survival Ascended';
case 'sdtd':
return '7 Days To Die';
case 'palworld':
return 'Palworld (Early Access)';
}
return $gameId;
}
}

?>

0 comments on commit 9c47756

Please sign in to comment.