Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServerApi.Hooks.DropBossBag is no longer valid #2998

Open
xuyuwtu opened this issue Dec 9, 2023 · 0 comments
Open

ServerApi.Hooks.DropBossBag is no longer valid #2998

xuyuwtu opened this issue Dec 9, 2023 · 0 comments

Comments

@xuyuwtu
Copy link

xuyuwtu commented Dec 9, 2023

  • TShock version:5.2

TerrariaApi.Server.ServerApi.Hooks.DropBossBag on OTAPI(v1449) is no longer valid.
On OTAPI(v1353) Terraria.NPC.DropBossBag() will call Terraria.NPC.DropItemInstanced(). Finally, call to TerrariaApi.Server.ServerApi.Hooks.DropBossBag.
On OTAPI(v1449) NPC.DropBossBag() is removed. Only Terraria.GameContent.Events.DD2Event.DropMedals() method is still being called.
NPC.DropBossBag() has been replaced with a rule. RuleType is Terraria.GameContent.ItemDropRules.DropLocalPerClientAndResetsNPCMoneyTo0.This class will call Terraria.GameContent.ItemDropRules.CommonCode.DropItemLocalPerClientAndSetNPCMoneyTo0() to drop boss bag. Now,ServerApi.Hooks.DropBossBag can only capture dropped ItemID.DefenderMedical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant