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

No magic dissectables #73579

Merged
merged 1 commit into from
May 10, 2024
Merged

Conversation

RenechCDDA
Copy link
Member

@RenechCDDA RenechCDDA commented May 8, 2024

Summary

None

Purpose of change

Fixes some bug(s) (to be linked later™) Apparently this was never reported? But @Karol1223 encountered it when adding dissections to graboids, and they thought it had the same cause as another bug. It does not, so I guess this one doesn't close anything at all.

Describe the solution

Don't magic dissectables out of thin air in any circumstance. If we want NO_CORPSE monsters to drop stuff on death we can just give them death_drops in json.

Describe alternatives you've considered

Testing

Gave graboid(NO_CORPSE death type) some sample dissection results. Killed graboid, watched it "split in two" and samples fall out of the sky.

Applied patch, killed graboid again. No magic samples.

Additional context

I tracked when this code was originally added in a #57322 commit and as far as I can tell this was always erroneous?

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly. astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels May 8, 2024
@Maleclypse
Copy link
Member

Clang must be appeased

@RenechCDDA
Copy link
Member Author

Wow clang being rude, I didn't even do that one. I can deal with it though, I'll push it in a bit.

@dseguin dseguin merged commit 80a8594 into CleverRaven:master May 10, 2024
24 of 26 checks passed
@RenechCDDA RenechCDDA deleted the dissection_magic_trick branch May 10, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions Monsters Monsters both friendly and unfriendly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants