@paintswap/estfor-definitions 0.1.82 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paintswap/estfor-definitions",
3
- "version": "0.1.82",
3
+ "version": "0.1.83",
4
4
  "description": "Types and constants for Estfor Kingdom",
5
5
  "repository": {
6
6
  "type": "git",
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
- export class PendingQueuedActionXPGained {
181
- // The amount of XP that the queued action has already gained
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
- alreadyProcessedSkill: Skill = Skill.NONE
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
- xpGained: PendingQueuedActionXPGained = new PendingQueuedActionXPGained()
214
+ processedData: PendingQueuedActionProcessed = new PendingQueuedActionProcessed()
207
215
  producedPastRandomRewards: PastRandomRewardInfo[] = []
208
216
  xpRewardItemTokenIds: string[] = []
209
217
  xpRewardAmounts: string[] = []
@@ -514,18 +522,18 @@ export class Quest {
514
522
  id: string = '' // quest id
515
523
 
516
524
  dependentQuest: Quest = new Quest() // The quest that must be completed before this one can be started
517
- action: Action = new Action() // action to do
518
- actionNum: u16 = 0 // how many (up to 65535)
519
- action1: Action = new Action() // another action to do
525
+ action1: Action = new Action() // action to do
520
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)
521
529
  actionChoice: ActionChoice = new ActionChoice() // actionChoice to perform
522
530
  actionChoiceNum: u16 = 0 // how many to do (base number), (up to 65535)
523
531
  skillReward: Skill = Skill.NONE // The skill to reward XP to
524
532
  skillXPGained: u16 = 0 // The amount of XP to give (up to 65535)
525
- rewardItem: Item = new Item() // Reward an item
526
- rewardAmount: u16 = 0 // amount of the reward (up to 65535)
527
- rewardItem1: Item = new Item() // Reward another item
533
+ rewardItem1: Item = new Item() // Reward an item
528
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)
529
537
  burnItem: Item = new Item() // Burn an item
530
538
  burnAmount: u16 = 0 // amount of the burn (up to 65535)
531
539
  requireActionsCompletedBeforeBurning: boolean // Whether we can start burning before other things are completed
@@ -537,8 +545,8 @@ export class Quest {
537
545
 
538
546
  export class PlayerQuestOutput {
539
547
  questId: string = ''
540
- actionCompletedNum: u32 = 0
541
548
  actionCompletedNum1: u32 = 0
549
+ actionCompletedNum2: u32 = 0
542
550
  actionChoiceCompletedNum: u32 = 0
543
551
  burnCompletedAmount: u32 = 0
544
552
  }
@@ -552,8 +560,8 @@ export class PlayerQuest {
552
560
  lastUpdatedTimestamp: string = ''
553
561
 
554
562
  // Progression in this quest
555
- actionCompletedNum: u32 = 0
556
563
  actionCompletedNum1: u32 = 0
564
+ actionCompletedNum2: u32 = 0
557
565
  actionChoiceCompletedNum: u32 = 0
558
566
  burnCompletedAmount: u32 = 0
559
567
 
@@ -573,6 +581,8 @@ export class Clan {
573
581
  id: string = ''
574
582
  owner: Player = new Player()
575
583
  name: string = ''
584
+ discord: string | null = ''
585
+ telegram: string | null = ''
576
586
  imageId: u16 = 0
577
587
  tier: ClanTier = new ClanTier()
578
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