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

destroys the entire codebase for golf #20658

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

JohnFulpWillard
Copy link
Contributor

@JohnFulpWillard JohnFulpWillard commented Oct 17, 2023

Document the changes in your pull request

This PR started as me trying to replace instances of initial(icon_state) with base_icon_state, but the more I looked into Golf stuff the worse it got.

I started with replacing attackby with wrench_act, then it was kinda fucked, so I ported TG's improved tool_act system, which in the future can be used to log instances of people using tools on stuff (so admins can easily tell who used a screwdriver and multitool to hack a door without the need for buggy replay, for example).

I also tried to implement custom wrench/unwrench sounds because I saw the machine used one, then noticed that it uses Ratchet.ogg instead of ratchet.ogg, which isn't a problem if you're running on Windows but Linux cares for case sensitivity (https://learn.microsoft.com/en-us/windows/wsl/case-sensitivity) and we should probably try to support people who host there, so now it's been replaced.

I also saw a bunch of texts being sent to your chat for minor golf stuff like missing a hole, which I think is stupid because Golf is a multiplayer game, so instead it's now all balloon alerts that plays to everyone nearby. With this, I've also added some more feedback to playing, and you now have to rest to get golf balls out of the hole.

While testing, I saw the closet also didn't come with golf clubs. Looking at the code, it was all being spawned in New(), which PopulateContents() specifically says to use that instead of New() or Initialize() to populate contents. I also took the opportunity to cut down on some spam copy paste there too.

After finding this terrible thing, I decided to look into any other instances of crates loading things in New/Initialize. You know, the thing you're not supposed to do. I found one other instance of this- abandoned crates. I've removed it from there, then decided I might as well clean up things there as well. I tried testing it in-game and, varediting it being locked doesn't update its appearanaces. Awesome, now we have stealthily locked crates that can't blow up. I fixed that too, and now it uses multitool_act too.
I checked other case of vv_edit_var just for fun and saw the entire ARMOR FILES USES SPACES INSTEAD OF TABS
so I fixed that too.

I also removed the golf machine's power reliance, since it doesn't use any and is barely even a machine.

I also fixed golf working like, at all. Golf machine now uses Crossed instead of Cross, which isn't generally supposed to be used and caused it to not properly move the ball into the hole.

Why is this good for the game?

Golf works
Better and more consistent code overall
Removes unused climb stuff that's now an Element.

Testing

trust me bro

Spriting

Wiki Documentation

Changelog

🆑
bugfix: Golf now works.
bugfix: Different golf holes can now be differentiated.
bugfix: Golf doesn't need power anymore.
bugfix: Golf closets now come with all golf equipment.
/:cl:

@Yogbot-13 Yogbot-13 added DME Edit This PR affects the yogstation.DME file Fix This fixes an issue. Please link issues in fix PRs labels Oct 17, 2023
@MajManatee
Copy link
Contributor

The sinner that used spaces instead of tabs should be culled.

@MajManatee MajManatee added the Awaiting - Merge This PR is ready for merge label Oct 17, 2023
@Moltijoe Moltijoe removed the Awaiting - Merge This PR is ready for merge label Oct 18, 2023
@MajManatee MajManatee added the Awaiting - Action - Author This PR is awaiting an action from the author label Oct 18, 2023
@Moltijoe Moltijoe removed the Awaiting - Action - Author This PR is awaiting an action from the author label Oct 19, 2023
@MajManatee MajManatee added the Incomplete This PR, despite not being a draft, is incomplete and still needs work done. label Oct 19, 2023
@warface1234455
Copy link
Contributor

tags war is real

@MajManatee
Copy link
Contributor

bro keeps removing them and wont say why

@JohnFulpWillard
Copy link
Contributor Author

you're adding them and they don't know why

@MajManatee MajManatee added Awaiting - Action - Maintainer This PR is awaiting an action from a maintainer and removed Incomplete This PR, despite not being a draft, is incomplete and still needs work done. labels Oct 27, 2023
@ToasterBiome ToasterBiome merged commit c3b4fd3 into yogstation13:master Nov 1, 2023
Yogbot-13 added a commit that referenced this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting - Action - Maintainer This PR is awaiting an action from a maintainer DME Edit This PR affects the yogstation.DME file Fix This fixes an issue. Please link issues in fix PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants