Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xdecor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
xdecor
Commits
885d6398
Commit
885d6398
authored
7 years ago
by
JPG
Browse files
Options
Downloads
Patches
Plain Diff
Remove remaining 3d_armor's support code
parent
ef032168
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/enchanting.lua
+2
-8
2 additions, 8 deletions
src/enchanting.lua
with
2 additions
and
8 deletions
src/enchanting.lua
+
2
−
8
View file @
885d6398
...
...
@@ -9,9 +9,6 @@ local enchanting = {
uses
=
1
.
2
,
-- Durability
times
=
0
.
1
,
-- Efficiency
damages
=
1
,
-- Sharpness
strength
=
1
.
2
,
-- Armor strength (3d_armor only)
speed
=
0
.
2
,
-- Player speed (3d_armor only)
jump
=
0
.
2
-- Player jumping (3d_armor only)
}
local
function
cap
(
S
)
return
S
:
gsub
(
"^%l"
,
string.upper
)
end
...
...
@@ -71,9 +68,7 @@ function enchanting.formspec(pos, num)
image[2,2.9;1,1;mese_layout.png]
tooltip[sharp;Your weapon inflicts more damages]
tooltip[durable;Your tool last longer]
tooltip[fast;Your tool digs faster]
tooltip[strong;Your armor is more resistant]
tooltip[speed;Your speed is increased] ]]
tooltip[fast;Your tool digs faster] ]]
..
default
.
gui_slots
..
default
.
get_hotbar_bg
(
0
.
5
,
4
.
5
)
formspec
=
formspec
..
(
enchant_buttons
[
num
]
or
""
)
...
...
@@ -85,8 +80,7 @@ function enchanting.on_put(pos, listname, _, stack)
local
stackname
=
stack
:
get_name
()
local
tool_groups
=
{
"axe, pick, shovel"
,
"chestplate, leggings, helmet"
,
"sword"
,
"boots"
"sword"
,
}
for
idx
,
tools
in
pairs
(
tool_groups
)
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment