omniarena-nurvus-shared 0.26.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/battle.d.ts +1 -0
- package/dist/common.d.ts +1 -1
- package/dist/socket.d.ts +1 -1
- package/dist/users.d.ts +6 -0
- package/package.json +1 -1
package/dist/battle.d.ts
CHANGED
package/dist/common.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type UserRole = 'user' | 'admin' | 'mod' | 'bot' | 'bot_easiest' | 'bot_easy' | 'skin_maker';
|
|
1
|
+
export type UserRole = 'user' | 'admin' | 'mod' | 'bot' | 'bot_easiest' | 'bot_easy' | 'bot_medium' | 'bot_hard' | 'bot_hardest' | 'skin_maker';
|
|
2
2
|
export type BattleMode = 'ranked' | 'casual' | 'private';
|
|
3
3
|
export type BattleEndReason = 'opponent_defeated' | 'opponent_surrendered' | 'opponent_left' | 'error';
|
|
4
4
|
export type UserHeaderDto = {
|
package/dist/socket.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { BattleEndReason, BattleMode } from './common.js';
|
|
|
2
2
|
import type { UserHeaderDto } from './common.js';
|
|
3
3
|
import type { ActionData } from './engine.js';
|
|
4
4
|
export type ChallengeDenyReason = 'declined' | 'busy' | 'offline' | 'expired' | 'withdrawn';
|
|
5
|
-
export type BotDifficulty = 'easiest' | 'easy';
|
|
5
|
+
export type BotDifficulty = 'easiest' | 'easy' | 'medium' | 'hard' | 'hardest';
|
|
6
6
|
export type ClientToServerEvents = {
|
|
7
7
|
team_changed: (members: number[]) => void;
|
|
8
8
|
search: (mode: BattleMode, opponent?: string) => void;
|
package/dist/users.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { UserRole } from './common.js';
|
|
2
|
+
export type RewardState = {
|
|
3
|
+
leaves: number;
|
|
4
|
+
bonus: number;
|
|
5
|
+
branchesCompleted: number;
|
|
6
|
+
};
|
|
2
7
|
export type UserDto = {
|
|
3
8
|
id: string;
|
|
4
9
|
username: string;
|
|
@@ -13,6 +18,7 @@ export type UserDto = {
|
|
|
13
18
|
streak: number;
|
|
14
19
|
highestStreak: number;
|
|
15
20
|
shards: number;
|
|
21
|
+
rewardState: RewardState;
|
|
16
22
|
skinId: string;
|
|
17
23
|
colorPrimary: string;
|
|
18
24
|
colorSecondary: string;
|