Closed 2079541547 closed 2 months ago
//...
auto ItemID_Sets_c = BNM::Class("Terraria.ID", "ItemID").GetInnerClass("Sets");
BNM::Field<BNM::Mono::Array<bool>> Deprecated = ItemID_Sets_c.GetField("Deprecated");
for (const bool& a : Deprecated.Get()->ToVector())
{
// Code that writes values to file
}
// this line sets 13th element to true
Deprecated.Get()[12] = true;
//...
Thank you, good comrade
I want to create a new field inside itemid and hook the switch branch of SetDefaults5 in item, I want to be able to call this.DefaultToAccessory(30, 42); What can I do with code like this?
I want to do what the hook static field should do. The following is using Tool dump