-
Notifications
You must be signed in to change notification settings - Fork 1
/
rarity_structs.sol
79 lines (68 loc) · 1.39 KB
/
rarity_structs.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
library rl {
struct _base {
string name;
uint xp;
uint log;
uint class;
uint level;
}
struct _ability_scores {
uint32 _str;
uint32 _dex;
uint32 _con;
uint32 _int;
uint32 _wis;
uint32 _cha;
}
struct _ability_modifiers {
int32 _str;
int32 _dex;
int32 _con;
int32 _int;
int32 _wis;
int32 _cha;
}
struct _ability_scores_full {
_ability_scores attributes;
_ability_modifiers modifiers;
uint total_points;
uint spent_points;
bool created;
}
struct _skills {
uint8[36] skills;
bool[36] class_skills;
uint total_points;
uint spent_points;
}
struct _gold {
uint balance;
uint claimed;
uint claimable;
}
struct _material {
uint balance;
uint scout;
uint log;
}
struct _summoner {
_base base;
_ability_scores_full ability_scores;
_skills skills;
_gold gold;
_material[] materials;
_misc misc;
}
struct _item1 {
uint token_id;
uint8 base_type;
uint8 item_type;
uint32 crafted;
uint crafter;
}
struct _misc {
uint daycare_days_paid;
}
}