Document tool details in default mod #16
Labels
No labels
balance
bug
doc
enhancement
infrastructure
lua
status
complete
status
needs design
status
needs fixing
status
needs implementation
status
needs review
status
needs testing
status
new
status
rejected
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
GrapeSodaGames/gsg-luanti#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
tool class (cracky, choppy, etc) and amount dealt
Levels
node type and health
So in documenting the tool capabilities, I've run into something confusing. Let's talk it out.
When defining tools, there are two values that define the level of node this tool can dig.
timestable, the key is a level value. If a value is omitted, the tool cannot break that level of node at all.maxlevelvalue, we indirectly modify theusesfinal value (uses * 3^(maxlevel-node.level))Conclusion:
maxlevelis poorly named. It doesn't actually interact with the other level, and doesn't describe the max of anything.I think the intent for this was to represent the max level of a node that can be broken while retaining a 1:1 between the uses value in code and the result in game. This is pretty terrible naming, because it's not a limit at all and level is used for other things. Unfortunately, this is core stuff so no changing it. It also poses a problem with #28, specifically adding new levels. I dunno. For now, we'll document it as is and we'll burn that bridge when we get to it.