@paintswap/estfor-definitions 0.1.81 → 0.1.83
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/package.json +1 -1
- package/src/types.ts +27 -16
- package/src/whitelisted_admins.ts +0 -1
- package/src/whitelisted_alpha_snapshot.ts +227 -0
- package/types.d.ts +21 -13
- package/types.d.ts.map +1 -1
- package/types.js +28 -19
- package/whitelisted_admins.d.ts.map +1 -1
- package/whitelisted_admins.js +0 -1
- package/whitelisted_alpha_snapshot.d.ts.map +1 -1
- package/whitelisted_alpha_snapshot.js +227 -0
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -154,7 +154,6 @@ export const defaultInputItem = new InputItem()
|
|
|
154
154
|
export const noAttire = new Attire()
|
|
155
155
|
|
|
156
156
|
export class PastRandomRewardInfo {
|
|
157
|
-
actionId: u16 = 0
|
|
158
157
|
queueId: u64 = 0
|
|
159
158
|
itemTokenId: u16 = 0
|
|
160
159
|
amount: u32 = 0
|
|
@@ -177,15 +176,24 @@ export class PendingQueuedActionMetadata {
|
|
|
177
176
|
xpElapsedTime: i32 = 0
|
|
178
177
|
}
|
|
179
178
|
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
// The amount of XP that the queued action has already been gained in the current action
|
|
180
|
+
class PendingQueuedActionData {
|
|
181
|
+
// The amount of XP that the queued
|
|
182
|
+
skill1: Skill = Skill.NONE
|
|
183
|
+
xpGained1: u32 = 0
|
|
184
|
+
skill2: Skill = Skill.NONE
|
|
185
|
+
xpGained2: u32 = 0
|
|
186
|
+
// How much food is consumed in the current action so far
|
|
187
|
+
foodConsumed: u16 = 0
|
|
188
|
+
// How many base consumables are consumed in the current action so far
|
|
189
|
+
numConsumed: u16 = 0
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
class PendingQueuedActionProcessed {
|
|
182
193
|
// XP gained during this session
|
|
183
194
|
skills: Skill[] = []
|
|
184
195
|
xpGainedSkills: u32[] = []
|
|
185
|
-
|
|
186
|
-
alreadyProcessedXPGained: u32 = 0
|
|
187
|
-
alreadyProcessedSkill1: Skill = Skill.NONE
|
|
188
|
-
alreadyProcessedXPGained1: u32 = 0
|
|
196
|
+
currentAction: PendingQueuedActionData = new PendingQueuedActionData()
|
|
189
197
|
}
|
|
190
198
|
|
|
191
199
|
export class QuestState {
|
|
@@ -203,7 +211,7 @@ export class PendingQueuedActionState {
|
|
|
203
211
|
// First 2 are in sync
|
|
204
212
|
equipmentStates: PendingQueuedActionEquipmentState[] = []
|
|
205
213
|
actionMetadatas: PendingQueuedActionMetadata[] = []
|
|
206
|
-
|
|
214
|
+
processedData: PendingQueuedActionProcessed = new PendingQueuedActionProcessed()
|
|
207
215
|
producedPastRandomRewards: PastRandomRewardInfo[] = []
|
|
208
216
|
xpRewardItemTokenIds: string[] = []
|
|
209
217
|
xpRewardAmounts: string[] = []
|
|
@@ -238,6 +246,7 @@ export class Player {
|
|
|
238
246
|
pendingRandomRewards: string[] = [] // Timestamps for any rewards which are waiting on the next seed
|
|
239
247
|
activeQuest: PlayerQuest = new PlayerQuest()
|
|
240
248
|
numFixedQuestsCompleted: u32 = 0
|
|
249
|
+
isBurnt: boolean = false // Whether the NFT associated with this player has been burnt
|
|
241
250
|
|
|
242
251
|
/* Skill XP */
|
|
243
252
|
woodcuttingXP: string = '0'
|
|
@@ -513,18 +522,18 @@ export class Quest {
|
|
|
513
522
|
id: string = '' // quest id
|
|
514
523
|
|
|
515
524
|
dependentQuest: Quest = new Quest() // The quest that must be completed before this one can be started
|
|
516
|
-
|
|
517
|
-
actionNum: u16 = 0 // how many (up to 65535)
|
|
518
|
-
action1: Action = new Action() // another action to do
|
|
525
|
+
action1: Action = new Action() // action to do
|
|
519
526
|
actionNum1: u16 = 0 // how many (up to 65535)
|
|
527
|
+
action2: Action = new Action() // another action to do
|
|
528
|
+
actionNum2: u16 = 0 // how many (up to 65535)
|
|
520
529
|
actionChoice: ActionChoice = new ActionChoice() // actionChoice to perform
|
|
521
530
|
actionChoiceNum: u16 = 0 // how many to do (base number), (up to 65535)
|
|
522
531
|
skillReward: Skill = Skill.NONE // The skill to reward XP to
|
|
523
532
|
skillXPGained: u16 = 0 // The amount of XP to give (up to 65535)
|
|
524
|
-
|
|
525
|
-
rewardAmount: u16 = 0 // amount of the reward (up to 65535)
|
|
526
|
-
rewardItem1: Item = new Item() // Reward another item
|
|
533
|
+
rewardItem1: Item = new Item() // Reward an item
|
|
527
534
|
rewardAmount1: u16 = 0 // amount of the reward (up to 65535)
|
|
535
|
+
rewardItem2: Item = new Item() // Reward another item
|
|
536
|
+
rewardAmount2: u16 = 0 // amount of the reward (up to 65535)
|
|
528
537
|
burnItem: Item = new Item() // Burn an item
|
|
529
538
|
burnAmount: u16 = 0 // amount of the burn (up to 65535)
|
|
530
539
|
requireActionsCompletedBeforeBurning: boolean // Whether we can start burning before other things are completed
|
|
@@ -536,8 +545,8 @@ export class Quest {
|
|
|
536
545
|
|
|
537
546
|
export class PlayerQuestOutput {
|
|
538
547
|
questId: string = ''
|
|
539
|
-
actionCompletedNum: u32 = 0
|
|
540
548
|
actionCompletedNum1: u32 = 0
|
|
549
|
+
actionCompletedNum2: u32 = 0
|
|
541
550
|
actionChoiceCompletedNum: u32 = 0
|
|
542
551
|
burnCompletedAmount: u32 = 0
|
|
543
552
|
}
|
|
@@ -551,8 +560,8 @@ export class PlayerQuest {
|
|
|
551
560
|
lastUpdatedTimestamp: string = ''
|
|
552
561
|
|
|
553
562
|
// Progression in this quest
|
|
554
|
-
actionCompletedNum: u32 = 0
|
|
555
563
|
actionCompletedNum1: u32 = 0
|
|
564
|
+
actionCompletedNum2: u32 = 0
|
|
556
565
|
actionChoiceCompletedNum: u32 = 0
|
|
557
566
|
burnCompletedAmount: u32 = 0
|
|
558
567
|
|
|
@@ -572,6 +581,8 @@ export class Clan {
|
|
|
572
581
|
id: string = ''
|
|
573
582
|
owner: Player = new Player()
|
|
574
583
|
name: string = ''
|
|
584
|
+
discord: string | null = ''
|
|
585
|
+
telegram: string | null = ''
|
|
575
586
|
imageId: u16 = 0
|
|
576
587
|
tier: ClanTier = new ClanTier()
|
|
577
588
|
createdTimestamp: string = ''
|
|
@@ -11,6 +11,5 @@ export const whitelistedAdmins = [
|
|
|
11
11
|
'0xa69950c58fd6f885088f492c80162eba237931c2',
|
|
12
12
|
'0x1d877c5e1452a635b3feaa47994b03c7c0976ad3',
|
|
13
13
|
'0xb4dda75e5dee0a9e999152c3b72816fc1004d1dd',
|
|
14
|
-
'0xdea975931e3c827cb64cd978c5b43504e56d675c',
|
|
15
14
|
]
|
|
16
15
|
export default whitelistedAdmins
|