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

Fix gm-unit for skills above level 20 #1118

Merged
merged 2 commits into from
May 16, 2024
Merged

Conversation

tatoyoda600
Copy link
Contributor

Copy link
Member

@myk002 myk002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! please add a line to the Misc Improvements section under the "Future" version in changelog.txt

Also, please feel free to add yourself to https://github.com/DFHack/dfhack/blob/develop/docs/about/Authors.rst (in a separate PR)

@@ -24,7 +24,13 @@ function list_skills(unit, learned_only)
u_skill={rating=-1,experience=0}
end
local rating
if u_skill.rating >=0 then
if u_skill.rating >15 then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use df.skill_rating.Legendary instead of the magic number 15

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've replaced the magic number and added an entry in changelog.txt.
I'm unsure if I made the changelog entry correctly though.

Copy link
Member

@myk002 myk002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! Thanks!

@myk002 myk002 merged commit 2f664e7 into DFHack:master May 16, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
2 participants