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

Tool capabilities seem inconsistent #42

Closed
nonchip opened this issue Aug 20, 2020 · 6 comments · Fixed by #43
Closed

Tool capabilities seem inconsistent #42

nonchip opened this issue Aug 20, 2020 · 6 comments · Fixed by #43
Labels

Comments

@nonchip
Copy link

nonchip commented Aug 20, 2020

just noticed trying to mine a nssm:web ({flammable=2, snappy=1, liquid=1}) with a mithril sword (snappy = {times = {[2] = 0.70, [3] = 0.25}, uses = 200, maxlevel = 2},) does literally nothing.

tried a bunch of similar situations and the results seem mixed, e.g. leaves work as expected.

also does some things that other swords won't, e.g. a mithril sword breaks a default:cactus while a default diamond sword won't.

@Calinou Calinou added the bug label Aug 20, 2020
@Calinou Calinou changed the title tool capabilities seem inconsistent Tool capabilities seem inconsistent Aug 20, 2020
@Calinou
Copy link
Member

Calinou commented Aug 20, 2020

Feel free to open a pull request to fix this 🙂

@nonchip
Copy link
Author

nonchip commented Aug 20, 2020

would do, but thing is i have no idea (yet) what causes this, the code the way i understand it shouldn't be doing that...

@Desour
Copy link

Desour commented Aug 20, 2020

The sword is choppy and the snappy=1 time is missing:

moreores/init.lua

Lines 307 to 311 in 734f927

sword = {
fleshy = {times = {[2] = 0.65, [3] = 0.25}, uses = 200, maxlevel = 2},
snappy = {times = {[2] = 0.70, [3] = 0.25}, uses = 200, maxlevel = 2},
choppy = {times = {[3] = 0.65}, uses = 200, maxlevel = 0},
},

Btw. why is mithril maxlevel 2? Mese has 3.

@GreenDirkfried
Copy link
Contributor

Another thing is that, e.g., all of the mithril tools have the same fleshy damage.
Would it not be better if the sword makes more fleshy damage than the shovel?
Some change like
if tool_name == "pick" then tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval tdef.tool_capabilities.damage_groups = oredef.tools.pick.damage_groups tdef.description = S("@1 Pickaxe", S(description)) end
and
pick = { cracky = {times = {[1] = 2.60, [2] = 1.00, [3] = 0.60}, uses = 100, maxlevel = 1}, damage_groups = {fleshy = 4}, },

@Calinou
Copy link
Member

Calinou commented Sep 17, 2021

@GreenDirkfried I'd make the behavior match the default mod as much as possible. Feel free to open a pull request for this 🙂

@GreenDirkfried
Copy link
Contributor

Thanks for the fast response :-)
Pull request is open.
If the question is about license, I would of course be fine with the license you use yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants