fixed some stuff

This commit is contained in:
cale 2016-09-05 14:52:25 +02:00
parent 43283133e8
commit 259d804acc
3 changed files with 9 additions and 5 deletions

View File

@ -286,7 +286,7 @@ minetest.register_on_newplayer(function(player)
local q5 = quests.add_craft_goal(quest, "Craft Stone Axe", {"default:axe_stone"}, 1, "Now you can craft a Stone Axe.")
local q6 = quests.add_dig_goal(quest, "Harvest Logs", {"default:log","default:log_1","default:log_2","default:log_3", "default:jungle_tree"}, 20, "You can use the Stone Axe to harvest logs.")
local q7 = quests.add_dig_goal(quest, "Mine Stone", {"default:stone"}, 20, "You can also mine Stone with your Stone Axe.")
local q8 = quests.add_craft_goal(quest, "Craft Flint Pick", {"default:flint_pick"}, 1, "Craft a Flint Pick!")
local q8 = quests.add_craft_goal(quest, "Craft Flint Pick", {"default:flint_pick"}, 1, "Craft a Flint Pick!", "You can use the flint pick to dig harder blocks.")
q3.reward = "default:wood 3"
q4.reward = "crafting_guide:book"
@ -314,8 +314,8 @@ minetest.register_on_newplayer(function(player)
local q4 = quests.add_dig_goal(quest, "Mine Copper", {"default:stone_with_copper"}, 10, "")
local q5 = quests.add_dig_goal(quest, "Mine Diamond", {"default:stone_with_diamond"}, 10, "")
q1.reward = "default:torch 10"
q2.reward = "default:apple 30"
q1.reward = "torch:torch 10"
q2.reward = "farming:apple 30"
q3.reward = "default:pick"
q4.reward = "default:torch 99"
q5.reward = "default:torch 99"

View File

@ -158,7 +158,7 @@ skills.abilities.register_ability("sprint", {
description = "Sprint\n Level: 4\n Skill: hunter\n Time: 5.0\n Effect: speed = 3\n Energy: 20",
img = "skills_abilities_run.png",
skill = "hunter",
lvl = 1,
lvl = 4,
energy = 20,
on_use = function(itemstack, user, pointed_thing)
user:set_physics_override({

View File

@ -7,7 +7,11 @@ skills.skills_file = minetest.get_worldpath() .. "/skills"
minetest.register_on_newplayer(function(player)
skills.lvls[player:get_player_name()] = {}
for s,a in pairs(skills.all_skills) do
skills.lvls[player:get_player_name()][s] = 1
if s == "miner" then
skills.lvls[player:get_player_name()][s] = 2
else
skills.lvls[player:get_player_name()][s] = 1
end
end
skills.save_skills()
end)