Fixed a bug that made the Rappid Digger buff no longer available to shovels
parent
87b7088372
commit
3bd1274934
Binary file not shown.
After Width: | Height: | Size: 350 KiB |
|
@ -21,284 +21,237 @@
|
|||
-- just implementing a single debug buff. This will likely be corrected
|
||||
-- in the next commit, but there still won't be enough buffs to go
|
||||
-- around and each buff will be granted by several runes.
|
||||
|
||||
return {
|
||||
sand = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
axe = {
|
||||
sand = "toter",
|
||||
coal_lump = "toter",
|
||||
iron_lump = "toter",
|
||||
sapling = "toter",
|
||||
mese_crystal = "durable",
|
||||
copper_lump = "toter",
|
||||
diamond = "durable",
|
||||
gold_lump = "toter",
|
||||
junglesapling = "toter",
|
||||
seed_cotton = "rapid",
|
||||
seed_wheat = "rapid",
|
||||
string = "rapid",
|
||||
wheat = "rapid",
|
||||
cotton = "rapid",
|
||||
pine_sapling = "toter",
|
||||
acacia_sapling = "toter",
|
||||
mushroom_brown = "toter",
|
||||
mushroom_red = "toter",
|
||||
mushroom_spores_brown = "toter",
|
||||
mushroom_spores_red = "toter",
|
||||
aspen_sapling = "toter",
|
||||
flint = "toter",
|
||||
coral_skeleton = "toter",
|
||||
acacia_bush_sapling = "toter",
|
||||
bush_sapling = "toter",
|
||||
tin_lump = "toter",
|
||||
blueberries = "toter",
|
||||
blueberry_bush_sapling = "toter",
|
||||
ice = "toter",
|
||||
pine_bush_sapling = "toter",
|
||||
dry_dirt = "toter",
|
||||
},
|
||||
coal_lump = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
fire_starter = {
|
||||
sand = "debug",
|
||||
coal_lump = "debug",
|
||||
iron_lump = "debug",
|
||||
sapling = "debug",
|
||||
mese_crystal = "durable",
|
||||
copper_lump = "debug",
|
||||
diamond = "durable",
|
||||
gold_lump = "debug",
|
||||
junglesapling = "debug",
|
||||
seed_cotton = "debug",
|
||||
seed_wheat = "debug",
|
||||
string = "debug",
|
||||
wheat = "debug",
|
||||
cotton = "debug",
|
||||
pine_sapling = "debug",
|
||||
acacia_sapling = "debug",
|
||||
mushroom_brown = "debug",
|
||||
mushroom_red = "debug",
|
||||
mushroom_spores_brown = "debug",
|
||||
mushroom_spores_red = "debug",
|
||||
aspen_sapling = "debug",
|
||||
flint = "debug",
|
||||
coral_skeleton = "debug",
|
||||
acacia_bush_sapling = "debug",
|
||||
bush_sapling = "debug",
|
||||
tin_lump = "debug",
|
||||
blueberries = "debug",
|
||||
blueberry_bush_sapling = "debug",
|
||||
ice = "debug",
|
||||
pine_bush_sapling = "debug",
|
||||
dry_dirt = "debug",
|
||||
},
|
||||
iron_lump = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
pick = {
|
||||
sand = "rapid",
|
||||
coal_lump = "rapid",
|
||||
iron_lump = "rapid",
|
||||
sapling = "rapid",
|
||||
mese_crystal = "durable",
|
||||
copper_lump = "rapid",
|
||||
diamond = "durable",
|
||||
gold_lump = "rapid",
|
||||
junglesapling = "rapid",
|
||||
seed_cotton = "rapid",
|
||||
seed_wheat = "rapid",
|
||||
string = "rapid",
|
||||
wheat = "rapid",
|
||||
cotton = "rapid",
|
||||
pine_sapling = "rapid",
|
||||
acacia_sapling = "rapid",
|
||||
mushroom_brown = "rapid",
|
||||
mushroom_red = "rapid",
|
||||
mushroom_spores_brown = "rapid",
|
||||
mushroom_spores_red = "rapid",
|
||||
aspen_sapling = "rapid",
|
||||
flint = "rapid",
|
||||
coral_skeleton = "rapid",
|
||||
acacia_bush_sapling = "rapid",
|
||||
bush_sapling = "rapid",
|
||||
tin_lump = "rapid",
|
||||
blueberries = "rapid",
|
||||
blueberry_bush_sapling = "rapid",
|
||||
ice = "rapid",
|
||||
pine_bush_sapling = "rapid",
|
||||
dry_dirt = "rapid",
|
||||
},
|
||||
sapling = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "thirst",
|
||||
sword = "thirst",
|
||||
hoe = {
|
||||
sand = "debug",
|
||||
coal_lump = "debug",
|
||||
iron_lump = "debug",
|
||||
sapling = "debug",
|
||||
mese_crystal = "durable",
|
||||
copper_lump = "debug",
|
||||
diamond = "durable",
|
||||
gold_lump = "debug",
|
||||
junglesapling = "debug",
|
||||
seed_cotton = "debug",
|
||||
seed_wheat = "debug",
|
||||
string = "debug",
|
||||
wheat = "debug",
|
||||
cotton = "debug",
|
||||
pine_sapling = "debug",
|
||||
acacia_sapling = "debug",
|
||||
mushroom_brown = "debug",
|
||||
mushroom_red = "debug",
|
||||
mushroom_spores_brown = "debug",
|
||||
mushroom_spores_red = "debug",
|
||||
aspen_sapling = "debug",
|
||||
flint = "debug",
|
||||
coral_skeleton = "debug",
|
||||
acacia_bush_sapling = "debug",
|
||||
bush_sapling = "debug",
|
||||
tin_lump = "debug",
|
||||
blueberries = "debug",
|
||||
blueberry_bush_sapling = "debug",
|
||||
ice = "debug",
|
||||
pine_bush_sapling = "debug",
|
||||
dry_dirt = "debug",
|
||||
},
|
||||
mese_crystal = {
|
||||
axe = "durability",
|
||||
fire_starter = "durability",
|
||||
pick = "durability",
|
||||
hoe = "durability",
|
||||
screwdriver = "durability",
|
||||
shovel = "durability",
|
||||
sword = "durability",
|
||||
screwdriver = {
|
||||
sand = "debug",
|
||||
coal_lump = "debug",
|
||||
iron_lump = "debug",
|
||||
sapling = "debug",
|
||||
mese_crystal = "durable",
|
||||
copper_lump = "debug",
|
||||
diamond = "durable",
|
||||
gold_lump = "debug",
|
||||
junglesapling = "debug",
|
||||
seed_cotton = "debug",
|
||||
seed_wheat = "debug",
|
||||
string = "debug",
|
||||
wheat = "debug",
|
||||
cotton = "debug",
|
||||
pine_sapling = "debug",
|
||||
acacia_sapling = "debug",
|
||||
mushroom_brown = "debug",
|
||||
mushroom_red = "debug",
|
||||
mushroom_spores_brown = "debug",
|
||||
mushroom_spores_red = "debug",
|
||||
aspen_sapling = "debug",
|
||||
flint = "debug",
|
||||
coral_skeleton = "debug",
|
||||
acacia_bush_sapling = "debug",
|
||||
bush_sapling = "debug",
|
||||
tin_lump = "debug",
|
||||
blueberries = "debug",
|
||||
blueberry_bush_sapling = "debug",
|
||||
ice = "debug",
|
||||
pine_bush_sapling = "debug",
|
||||
dry_dirt = "debug",
|
||||
},
|
||||
copper_lump = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
shovel = {
|
||||
sand = "rapid",
|
||||
coal_lump = "rapid",
|
||||
iron_lump = "rapid",
|
||||
sapling = "thirst",
|
||||
mese_crystal = "durable",
|
||||
copper_lump = "rapid",
|
||||
diamond = "durable",
|
||||
gold_lump = "rapid",
|
||||
junglesapling = "thirst",
|
||||
seed_cotton = "rapid",
|
||||
seed_wheat = "rapid",
|
||||
string = "rapid",
|
||||
wheat = "rapid",
|
||||
cotton = "rapid",
|
||||
pine_sapling = "thirst",
|
||||
acacia_sapling = "thirst",
|
||||
mushroom_brown = "spreader",
|
||||
mushroom_red = "spreader",
|
||||
mushroom_spores_brown = "spreader",
|
||||
mushroom_spores_red = "spreader",
|
||||
aspen_sapling = "thirst",
|
||||
flint = "thirst",
|
||||
coral_skeleton = "rapid",
|
||||
acacia_bush_sapling = "thirst",
|
||||
bush_sapling = "thirst",
|
||||
tin_lump = "rapid",
|
||||
blueberries = "transplanter",
|
||||
blueberry_bush_sapling = "thirst",
|
||||
ice = "rapid",
|
||||
pine_bush_sapling = "thirst",
|
||||
dry_dirt = "rapid",
|
||||
},
|
||||
diamond = {
|
||||
axe = "durability",
|
||||
fire_starter = "durability",
|
||||
pick = "durability",
|
||||
hoe = "durability",
|
||||
screwdriver = "durability",
|
||||
shovel = "durability",
|
||||
sword = "durability",
|
||||
},
|
||||
gold_lump = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
},
|
||||
junglesapling = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "thirst",
|
||||
sword = "thirst",
|
||||
},
|
||||
seed_cotton = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "transplanter",
|
||||
sword = "rapid",
|
||||
},
|
||||
seed_wheat = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "transplanter",
|
||||
sword = "rapid",
|
||||
},
|
||||
string = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "transplanter",
|
||||
sword = "rapid",
|
||||
},
|
||||
wheat = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "transplanter",
|
||||
sword = "rapid",
|
||||
},
|
||||
cotton = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "transplanter",
|
||||
sword = "rapid",
|
||||
},
|
||||
pine_sapling = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "thirst",
|
||||
sword = "thirst",
|
||||
},
|
||||
acacia_sapling = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "thirst",
|
||||
sword = "thirst",
|
||||
},
|
||||
mushroom_brown = {
|
||||
axe = "toter",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
},
|
||||
mushroom_red = {
|
||||
axe = "toter",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
},
|
||||
mushroom_spores_brown = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
},
|
||||
mushroom_spores_red = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
},
|
||||
aspen_sapling = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "thirst",
|
||||
sword = "thirst",
|
||||
},
|
||||
flint = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "thirst",
|
||||
sword = "thirst",
|
||||
},
|
||||
coral_skeleton = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
},
|
||||
acacia_bush_sapling = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "thirst",
|
||||
sword = "thirst",
|
||||
},
|
||||
bush_sapling = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "thirst",
|
||||
sword = "thirst",
|
||||
},
|
||||
tin_lump = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
},
|
||||
blueberries = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
},
|
||||
blueberry_bush_sapling = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "thirst",
|
||||
sword = "thirst",
|
||||
},
|
||||
ice = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
},
|
||||
pine_bush_sapling = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "thirst",
|
||||
sword = "thirst",
|
||||
},
|
||||
dry_dirt = {
|
||||
axe = "rapid",
|
||||
fire_starter = "debug",
|
||||
pick = "rapid",
|
||||
hoe = "debug",
|
||||
screwdriver = "debug",
|
||||
shovel = "spreader",
|
||||
sword = "pruner",
|
||||
sword = {
|
||||
sand = "rapid",
|
||||
coal_lump = "rapid",
|
||||
iron_lump = "rapid",
|
||||
sapling = "thirst",
|
||||
mese_crystal = "durable",
|
||||
copper_lump = "rapid",
|
||||
diamond = "durable",
|
||||
gold_lump = "rapid",
|
||||
junglesapling = "thirst",
|
||||
seed_cotton = "rapid",
|
||||
seed_wheat = "rapid",
|
||||
string = "rapid",
|
||||
wheat = "rapid",
|
||||
cotton = "rapid",
|
||||
pine_sapling = "thirst",
|
||||
acacia_sapling = "thirst",
|
||||
mushroom_brown = "pruner",
|
||||
mushroom_red = "pruner",
|
||||
mushroom_spores_brown = "pruner",
|
||||
mushroom_spores_red = "pruner",
|
||||
aspen_sapling = "thirst",
|
||||
flint = "thirst",
|
||||
coral_skeleton = "rapid",
|
||||
acacia_bush_sapling = "thirst",
|
||||
bush_sapling = "thirst",
|
||||
tin_lump = "rapid",
|
||||
blueberries = "pruner",
|
||||
blueberry_bush_sapling = "thirst",
|
||||
ice = "rapid",
|
||||
pine_bush_sapling = "thirst",
|
||||
dry_dirt = "rapid",
|
||||
},
|
||||
}
|
||||
|
|
|
@ -48,10 +48,10 @@ local rune_and_tool_to_buff = dofile(minetest.get_modpath("runes").."/buff_table
|
|||
|
||||
local buff_name = {
|
||||
debug = S("Debug Buff"),
|
||||
thirst = S("Thirst"),
|
||||
thirst = S("Level Thirst"),
|
||||
pruner = S("Pruner"),
|
||||
spreader = S("Spreader"),
|
||||
durability = S("Durability"),
|
||||
durable = S("Durable"),
|
||||
rapid = S("Rapid Digger"),
|
||||
toter = S("Toter"),
|
||||
transplanter = S("Transplanter"),
|
||||
|
@ -140,7 +140,7 @@ local function generate_tool(tool_name, player_name, runes)
|
|||
else
|
||||
used_runes[rune_name] = true
|
||||
end
|
||||
local buff_key = rune_and_tool_to_buff[rune_name][tool_name]
|
||||
local buff_key = rune_and_tool_to_buff[tool_name][rune_name]
|
||||
local level_key = rune_element_modname[rune_name]..":"..rune_name
|
||||
buffs[buff_key] = buffs[buff_key] or -1
|
||||
buffs[buff_key] = buffs[buff_key] + liblevelup.get.player_material_level(player_name, level_key)
|
||||
|
|
Loading…
Reference in New Issue