-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Support creating items from item groups with spells #64600
Conversation
FYI EoC has such ability now, widly used in xedra mod |
So you want to tell me I can just completely remove the "spawn_item" spell effect cause there are better ways to do it? |
Sure not, having more ways to do a thing is always better |
f94bb10
to
4287905
Compare
No, it's confusing and brittle. Having one good centralized way to do things is better code wise |
right now to spawn loot group from spell, you should make a spell, a loot group, and additional EoC that will spawn a loot group |
Just to be clear, there's over 100 spells that spawn items and I definitely won't rewrite all of them to use EOCs to remove the spawn_item spell effect. That'd go far beyond what I wanted to achieve with this, which is to clean up a bit of code for some other stuff I'm working on. |
Summary
Features "Support creating items from item groups with spells"
Purpose of change
Documentation was saying this is a thing already when it absolutely isn't.
I also want to reduce stray uses of
item::in_its_container
to have an easier time changing its behavior.Describe the solution
spell_effect::spawn_ethereal_item
to supportSPAWN_GROUP
flagWITH_CONTAINER
flag because the same thing can be done with itemgroupsDescribe alternatives you've considered
Testing
Changed a spell to use an item group and used it. It spawned the group (damage times), granted items were still ethereal if not comestible/permanent.
Additional context