-
Notifications
You must be signed in to change notification settings - Fork 6
/
AgonyIDs.lua
199 lines (190 loc) · 12.6 KB
/
AgonyIDs.lua
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
--Familiars
CollectibleType["AGONY_C_BLOATED_BABY"] = Isaac.GetItemIdByName("Bloated Baby")
FamiliarVariant["AGONY_F_BLOATED_BABY"] = Isaac.GetEntityVariantByName("Bloated Baby")
CollectibleType["AGONY_C_BURNT_BABY"] = Isaac.GetItemIdByName("Burnt Baby")
FamiliarVariant["AGONY_F_BURNT_BABY"] = Isaac.GetEntityVariantByName("Burnt Baby")
CollectibleType["AGONY_C_CHEST_OF_CHESTS"] = Isaac.GetItemIdByName("Chest of Chests")
FamiliarVariant["AGONY_F_CHEST_OF_CHESTS"] = Isaac.GetEntityVariantByName("Chest of Chests")
CollectibleType["AGONY_C_DESPAIR"] = Isaac.GetItemIdByName("Despair")
FamiliarVariant["AGONY_F_DESPAIR"] = Isaac.GetEntityVariantByName("Despair")
CollectibleType["AGONY_C_DRUNKEN_FLY"] = Isaac.GetItemIdByName("Drunken Fly")
FamiliarVariant["AGONY_F_DRUNKEN_FLY"] = Isaac.GetEntityVariantByName("Drunken Fly")
CollectibleType["AGONY_C_GOAT_FETUS"] = Isaac.GetItemIdByName("Goat Fetus")
FamiliarVariant["AGONY_F_GOAT_FETUS"] = Isaac.GetEntityVariantByName("Goat Fetus")
CollectibleType["AGONY_C_GRANDPA_FLY"] = Isaac.GetItemIdByName("Grandpa Fly")
FamiliarVariant["AGONY_F_GRANDPA_FLY"] = Isaac.GetEntityVariantByName("Grandpa Fly")
CollectibleType["AGONY_C_GRUDGE_HOLDER"] = Isaac.GetItemIdByName("Grudge Holder")
FamiliarVariant["AGONY_F_GRUDGE_HOLDER"] = Isaac.GetEntityVariantByName("Grudge Holder")
CollectibleType["AGONY_C_MOMMYS_DEMON"] = Isaac.GetItemIdByName("Mommy's Demon")
FamiliarVariant["AGONY_F_MOMMYS_DEMON"] = Isaac.GetEntityVariantByName("Mommy's Demon")
CollectibleType["AGONY_C_METAL_BABY"] = Isaac.GetItemIdByName("Metal Baby")
FamiliarVariant["AGONY_F_METAL_BABY"] = Isaac.GetEntityVariantByName("Metal Baby")
-- CollectibleType["AGONY_C_SACK_OF_SACKS_OF_SACKS"] = Isaac.GetItemIdByName("Sack of Sacks of Sacks")
-- CollectibleType["AGONY_C_SACK_OF_BAGS"] = Isaac.GetItemIdByName("Sack of Bags")
-- FamiliarVariant["AGONY_F_SACK_OF_SACKS_OF_SACKS"] = Isaac.GetEntityVariantByName("Sack of Sacks of Sacks")
-- FamiliarVariant["AGONY_F_SACK_OF_BAGS"] = Isaac.GetEntityVariantByName("Sack of Bags")
CollectibleType["AGONY_C_SOULMATES"] = Isaac.GetItemIdByName("Soulmates")
FamiliarVariant["AGONY_F_SOULMATE_JULIET"] = Isaac.GetEntityVariantByName("Juliet")
FamiliarVariant["AGONY_F_SOULMATE_ROMEO"] = Isaac.GetEntityVariantByName("Romeo")
CollectibleType["AGONY_C_TESLA_BABY"] = Isaac.GetItemIdByName("Tesla Baby")
FamiliarVariant["AGONY_F_TESLA_BABY"] = Isaac.GetEntityVariantByName("Tesla Baby")
-- CollectibleType["AGONY_C_TINY_TINY_HORN"] = Isaac.GetItemIdByName("Tiny Tiny Horn")
-- FamiliarVariant["AGONY_F_TINY_TINY_HORN"] = Isaac.GetEntityVariantByName("Tiny Tiny Horn")
-- CollectibleType["AGONY_C_WAIT_NO"] = Isaac.GetItemIdByName("Wait, No.")
-- FamiliarVariant["AGONY_F_WAIT_NO"] = Isaac.GetEntityVariantByName("Wait No")
CollectibleType["AGONY_C_GOSPEL_CHILD"] = Isaac.GetItemIdByName("Gospel Child")
FamiliarVariant["AGONY_F_GOSPEL_CHILD"] = Isaac.GetEntityVariantByName("Gospel Child")
--Collectibles
CollectibleType["AGONY_C_BIRTHDAY_GIFT"] = Isaac.GetItemIdByName("Birthday Gift");
-- CollectibleType["AGONY_C_BOWL_CUT"] = Isaac.GetItemIdByName("Bowl Cut");
-- CollectibleType["AGONY_C_BREADY_MOLD"] = Isaac.GetItemIdByName("Bready Mold");
CollectibleType["AGONY_C_BROTHER_CANCER"] = Isaac.GetItemIdByName("Brother Cancer");
CollectibleType["AGONY_C_TUMOR"] = Isaac.GetItemIdByName("Tumor");
CollectibleType["AGONY_C_CASHEW_MILK"] = Isaac.GetItemIdByName("Cashew Milk");
CollectibleType["AGONY_C_CORNUCOPIA"] = Isaac.GetItemIdByName("Cornucopia");
CollectibleType["AGONY_C_CYANIDE"] = Isaac.GetItemIdByName("Cyanide");
-- CollectibleType["AGONY_C_D3"] = Isaac.GetItemIdByName("D3");
-- CollectibleType["AGONY_C_D5"] = Isaac.GetItemIdByName("D5");
-- CollectibleType["AGONY_C_DICE_TATTOO"] = Isaac.GetItemIdByName("Dice Tattoo");
CollectibleType["AGONY_C_DOUBLE_DOWN"] = Isaac.GetItemIdByName("Double Down");
CollectibleType["AGONY_C_ELECTRIC_HAIR"] = Isaac.GetItemIdByName("Electric Hair");
CollectibleType["AGONY_C_FERROFLUID"] = Isaac.GetItemIdByName("Ferrofluid");
CollectibleType["AGONY_C_FRAGILE_CONCEPTION"] = Isaac.GetItemIdByName("Fragile Conception");
-- CollectibleType["AGONY_C_GASOLINE_JB"] = Isaac.GetItemIdByName("Gasoline Juicebox");
-- CollectibleType["AGONY_C_GOLD_MAN"] = Isaac.GetItemIdByName("Gold Man");
CollectibleType["AGONY_C_GROWING_ANXIETY"] = Isaac.GetItemIdByName("Growing Anxiety");
CollectibleType["AGONY_C_HYPERACTIVE"] = Isaac.GetItemIdByName("Hyperactive");
CollectibleType["AGONY_C_IRRITATING_BRACELETS"] = Isaac.GetItemIdByName("Irritating Bracelets");
-- CollectibleType["AGONY_C_KIP"] = Isaac.GetItemIdByName("Knowledge = Power");
-- CollectibleType["AGONY_C_LEPRECHAUNS_CONTRACT"] = Isaac.GetItemIdByName("Leprechaun's Contract");
CollectibleType["AGONY_C_LIL_RED_BOOK"] = Isaac.GetItemIdByName("Lil'Red Book");
CollectibleType["AGONY_C_LSD"] = Isaac.GetItemIdByName("Little Sugar Dumdum");
CollectibleType["AGONY_C_LOADED_DICE"] = Isaac.GetItemIdByName("Loaded Dice");
CollectibleType["AGONY_C_LUCKY_LEG"] = Isaac.GetItemIdByName("Lucky's Paw");
CollectibleType["AGONY_C_MAGIC_KIT"] = Isaac.GetItemIdByName("Magic Kit");
-- CollectibleType["AGONY_C_OVERGROWN_SPINE"] = Isaac.GetItemIdByName("Overgrown Spine");
CollectibleType["AGONY_C_PANDORASCHEST5"] = Isaac.GetItemIdByName("Pandora's Chest ")
CollectibleType["AGONY_C_PANDORASCHEST4"] = Isaac.GetItemIdByName("Pandora's Chest ")
CollectibleType["AGONY_C_PANDORASCHEST3"] = Isaac.GetItemIdByName("Pandora's Chest ")
CollectibleType["AGONY_C_PANDORASCHEST2"] = Isaac.GetItemIdByName("Pandora's Chest ")
CollectibleType["AGONY_C_PANDORASCHEST1"] = Isaac.GetItemIdByName("Pandora's Chest ")
CollectibleType["AGONY_C_PANDORASCHEST0"] = Isaac.GetItemIdByName("Pandora's Chest")
CollectibleType["AGONY_C_PARASITES"] = Isaac.GetItemIdByName("Infestation 3");
CollectibleType["AGONY_C_PERSONAL_BUBBLE"] = Isaac.GetItemIdByName("Personal Bubble");
-- CollectibleType["AGONY_C_PIP"] = Isaac.GetItemIdByName("Poverty = Power");
-- CollectibleType["AGONY_C_PRODUCTIVE_SEIZURE"] = Isaac.GetItemIdByName("Productive Seizure")
-- CollectibleType["AGONY_C_PYRAMID_HEAD"] = Isaac.GetItemIdByName("Pyramid Head");
CollectibleType["AGONY_C_PYRITE_NUGGET"] = Isaac.GetItemIdByName("Pyrite Nugget")
CollectibleType["AGONY_C_PYTHAGORE_BODY"] = Isaac.GetItemIdByName("Pythagore's Body");
-- CollectibleType["AGONY_C_RADIOACTIVE_PIZZA"] = Isaac.GetItemIdByName("Radioactive Pizza");
CollectibleType["AGONY_C_REMEMBER_ME_NOW"] = Isaac.GetItemIdByName("Remember Me Now");
CollectibleType["AGONY_C_RIGID_MIND"] = Isaac.GetItemIdByName("Rigid Mind");
CollectibleType["AGONY_C_SACRAMENTAL_WINE"] = Isaac.GetItemIdByName("Sacramental Wine");
-- CollectibleType["AGONY_C_SAFE_SPACE"] = Isaac.GetItemIdByName("Safe Space");
CollectibleType["AGONY_C_SOCIAL_ANXIETY"] = Isaac.GetItemIdByName("Social Anxiety");
-- CollectibleType["AGONY_C_SOMEONES_SHOE"] = Isaac.GetItemIdByName("Someone's Shoe")
-- CollectibleType["AGONY_C_SPECIAL_ONE"] = Isaac.GetItemIdByName("Special One");
-- CollectibleType["AGONY_C_SPOODER_BOI"] = Isaac.GetItemIdByName("Spooderboi");
-- CollectibleType["AGONY_C_TANTRUM"] = Isaac.GetItemIdByName("Tantrum");
CollectibleType["AGONY_C_TILL_DEATH_DO_US_APART"] = Isaac.GetItemIdByName("Till Death Do Us Apart")
-- CollectibleType["AGONY_C_TECH_9000"] = Isaac.GetItemIdByName("Technology 9000");
-- CollectibleType["AGONY_C_THE_BIG_ROCK"] = Isaac.GetItemIdByName("The Big Rock");
--CollectibleType["AGONY_C_THE_LUDOVICO_EXPERIMENT"] = Isaac.GetItemIdByName("The Ludovico Experiment");
--CollectibleType["AGONY_C_THE_LUDOVICO_THEORY"] = Isaac.GetItemIdByName("The Ludovico Theory");
CollectibleType["AGONY_C_THE_ROCK"] = Isaac.GetItemIdByName("The Rock");
CollectibleType["AGONY_C_THE_WAY"] = Isaac.GetItemIdByName("The Way");
CollectibleType["AGONY_C_TOURETTE"] = Isaac.GetItemIdByName("Tourette");
-- CollectibleType["AGONY_C_TRIPLOPIA"] = Isaac.GetItemIdByName("Triplopia");
-- CollectibleType["AGONY_C_VOMIT_CAKE"] = Isaac.GetItemIdByName("Vomit Cake");
-- CollectibleType["AGONY_C_WIP"] = Isaac.GetItemIdByName("Wrath = Power");
CollectibleType["AGONY_C_YEUX_REVOLVER"] = Isaac.GetItemIdByName("Yeux Revolver");
-- CollectibleType["AGONY_C_URA_BIG_GUY"] = Isaac.GetItemIdByName("You're a Big Guy");
CollectibleType["AGONY_C_RUNESTONE"] = Isaac.GetItemIdByName("Runestone");
-- CollectibleType["AGONY_C_JAUNDICE"] = Isaac.GetItemIdByName("Jaundice");
CollectibleType["AGONY_C_VANITY"] = Isaac.GetItemIdByName("Vanity");
CollectibleType["AGONY_C_PLACEHOLDER"] = Isaac.GetItemIdByName("Placeholder");
CollectibleType["AGONY_C_FATHERS_BLESSING"] = Isaac.GetItemIdByName("The Father's Blessing");
CollectibleType["AGONY_C_THE_FIREPLACE"] = Isaac.GetItemIdByName("The Fireplace");
CollectibleType["AGONY_C_THE_TOY_HAMMER"] = Isaac.GetItemIdByName("Toy Hammer");
CollectibleType["AGONY_C_TECH_LESS_THAN_3"] = Isaac.GetItemIdByName("Tech <3");
CollectibleType["AGONY_C_PILGRIMS_SHOE"] = Isaac.GetItemIdByName("Pilgrim's Shoe");
CollectibleType["AGONY_C_WORM_KNOT"] = Isaac.GetItemIdByName("Worm Knot");
CollectibleType["AGONY_C_EASTER_EGG"] = Isaac.GetItemIdByName("Easter Egg");
CollectibleType["AGONY_C_SMOKERS_LUNG"] = Isaac.GetItemIdByName("Smoker's Lung");
CollectibleType["AGONY_C_STINK_EYE"] = Isaac.GetItemIdByName("Stink Eye");
CollectibleType["AGONY_C_THE_ROOT_OF_ANGER"] = Isaac.GetItemIdByName("The Root Of Anger");
CollectibleType["AGONY_C_EGG_BEATER"] = Isaac.GetItemIdByName("Egg Beater");
-- CollectibleType["AGONY_C_NUT_MILK"] = Isaac.GetItemIdByName("Nut Milk");
-- CollectibleType["AGONY_C_SOAKED_REMOTE"] = Isaac.GetItemIdByName("Soaked Remote");
CollectibleType["AGONY_C_BLIND_FAITH"] = Isaac.GetItemIdByName("Blind Faith");
CollectibleType["AGONY_C_SAINTS_HOOD"] = Isaac.GetItemIdByName("Saint's Hood")
--Trinkets
TrinketType["AGONY_T_BLOODY_NUT"] = Isaac.GetTrinketIdByName("Bloody Nut")
TrinketType["AGONY_T_LUCKY_EGG"] = Isaac.GetTrinketIdByName("Lucky Egg")
TrinketType["AGONY_T_PARTY_POOPER"] = Isaac.GetTrinketIdByName("Party Pooper")
TrinketType["AGONY_T_SWALLOWED_DICE"] = Isaac.GetTrinketIdByName("Swallowed Dice")
TrinketType["AGONY_T_NUCLEAR_STONE"] = Isaac.GetTrinketIdByName("Nuclear Stone")
TrinketType["AGONY_T_SUICIDE_GOD"] = Isaac.GetTrinketIdByName("Suicide God");
TrinketType["AGONY_T_SOLOMON_CROWN"] = Isaac.GetTrinketIdByName("Solomon's Crown");
TrinketType["AGONY_T_BROKEN_SPIKE"] = Isaac.GetTrinketIdByName("Broken Spike");
--Cards
Card["AGONY_CARD_RELOAD"] = Isaac.GetCardIdByName("Reload!")
--Card["AGONY_CARD_LOTTERY_TICKET"] = Isaac.GetCardIdByName("Lottery Ticket")
Card["AGONY_CARD_REPAIR_WRENCH"] = Isaac.GetCardIdByName("Repair Wrench")
--Coin Variant
PickupVariant["AGONY_PICKUP_COIN"] = 520 --Agony Coins
--Coins Subtypes
CoinSubType["AGONY_COIN_PYRITE"] = 51 --not sure how to read that one automatically
--Heart Subtypes
HeartSubType["AGONY_HEART_CHERRY"] = 501
--Chests
-- PickupVariant["AGONY_PICKUP_SAFE"] = 550 --Agony Chests, reserve 550 to 560, since the subtype for chests is already used
--Pills
-- PillEffect["AGONY_PEFF_PARTY_PILLS"] = Isaac.GetPillEffectByName("Party Pills!");
--Misc Entities
-- EntityType["AGONY_ETYPE_TREASURE_HOARDER"] = Isaac.GetEntityTypeByName("Treasure Hoarder");
--Monsters
EntityType["AGONY_ETYPE_YELLOW_BLOCK"] = Isaac.GetEntityTypeByName("Yellow Block")
EntityType["AGONY_ETYPE_PLAYER_CLONE"] = Isaac.GetEntityTypeByName("Player Clone")
EntityType["AGONY_ETYPE_HUNCHBONE"] = Isaac.GetEntityTypeByName("Hunchbone")
EntityType["AGONY_ETYPE_COCOON"] = Isaac.GetEntityTypeByName("Spider Cocoon")
EntityType["AGONY_ETYPE_FATFLY"] = Isaac.GetEntityTypeByName("Fat Fly")
EntityType["AGONY_ETYPE_STUFFED_CREEP"] = Isaac.GetEntityTypeByName("Stuffed Creep")
EntityType["AGONY_ETYPE_SICK_CREEP"] = Isaac.GetEntityTypeByName("Sick Creep")
EntityType["AGONY_ETYPE_ETERNALS_JUMPING"] = Isaac.GetEntityTypeByName("Eternal Spider Jumping")
EntityType["AGONY_ETYPE_ETERNAL_SPIRIT"] = Isaac.GetEntityTypeByName("Eternal Spirit")
--Bosses
EntityType["AGONY_ETYPE_JOSEPH"] = Isaac.GetEntityTypeByName("Joseph")
--PlayerTypes
PlayerType["AGONY_PLAYER_HANNAH"] = Isaac.GetPlayerTypeByName("Hannah")
--NullCostumes
NullItemID["AGONY_ID_HANNAH"] = Isaac.GetCostumeIdByPath("gfx/characters/Character_001_HannahHead.anm2")
--Constants Updater
local enumsToUpdate = {
CollectibleType,
PillEffect,
TrinketType,
Card,
PlayerType,
NullItemID,
}
local boosterConsts = { --nicalis forgot to update their enums with the new things added in the booster pack
0,
0,
0,
3,
0,
0,
}
for _, enum in pairs(enumsToUpdate) do
local count = 0
local constName = nil
for name, id in pairs(enum) do
if name:sub(1,4) ~= "NUM_" and name ~= "CARD_RANDOM" and name ~= "PILLEFFECT_NULL" then --have to exclude CARD_RANDOM and PILLEFFECT_NULL because they don't count
count = count + 1
elseif name:sub(1,4) == "NUM_" then
constName = name
end
end
enum[constName] = count + boosterConsts[_]
end