@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paintswap/estfor-definitions",
3
- "version": "0.1.81",
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[] = []
@@ -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
- action: Action = new Action() // action to do
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
- rewardItem: Item = new Item() // Reward an item
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