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

Modded toilet poo support #3616

Merged
merged 3 commits into from
Jul 10, 2023
Merged

Conversation

direwolf420
Copy link
Contributor

@direwolf420 direwolf420 commented Jul 10, 2023

What is the new feature?

Modders can now flag their toilets to generate Poo.

Why should this be part of tModLoader?

1.4.4 feature

Are there alternative designs?

The existing constructor and Deconstruct helper for TileRestingInfo could be kept intact to avoid any breakage (as was the point when initially adding them in the sit/sleep PR). But Chicken-Bones on discord said that the next 1.4.4 release on preview will have breaking changes already, so it was decided to just expand the existing code.

Sample usage for the new feature

info.ExtraInfo.IsAToilet = true;

ExampleMod updates

ExampleToilet was updated

Porting Notes

  • Recompile if you used TileRestingInfo constructor/deconstructor
  • Add info.ExtraInfo.IsAToilet = true; to your toilet tile's ModifySittingTargetInfo hook

@Chicken-Bones Chicken-Bones merged commit e5ac187 into tModLoader:1.4.4 Jul 10, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants