forked from github/server
BUG 1779: Elfenwald-Effekte bei Trankzaubern.
https://bugs.eressea.de/view.php?id=1779
This commit is contained in:
parent
46b065dd29
commit
127cc41e8e
|
@ -19,44 +19,49 @@ local function create_item(mage, level, name, number)
|
||||||
return level
|
return level
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function create_potion(mage, level, name, force)
|
||||||
|
count = math.floor(force * 2 + 0.5)
|
||||||
|
return create_item(mage, level, name, count)
|
||||||
|
end
|
||||||
|
|
||||||
-- Wasser des Lebens
|
-- Wasser des Lebens
|
||||||
function create_potion_p2(r, mage, level, force)
|
function create_potion_p2(r, mage, level, force)
|
||||||
return create_item(mage, level, "p2", level)
|
return create_potion(mage, level, "p2", force)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Siebenmeilentee
|
-- Siebenmeilentee
|
||||||
function create_potion_p0(r, mage, level, force)
|
function create_potion_p0(r, mage, level, force)
|
||||||
return create_item(mage, level, "p0", level)
|
return create_potion(mage, level, "p0", force)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Wundsalbe
|
-- Wundsalbe
|
||||||
function create_potion_ointment(r, mage, level, force)
|
function create_potion_ointment(r, mage, level, force)
|
||||||
return create_item(mage, level, "ointment", level)
|
return create_potion(mage, level, "ointment", force)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Bauernblut
|
-- Bauernblut
|
||||||
function create_potion_peasantblood(r, mage, level, force)
|
function create_potion_peasantblood(r, mage, level, force)
|
||||||
return create_item(mage, level, "peasantblood", level)
|
return create_potion(mage, level, "peasantblood", force)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Pferdeglueck
|
-- Pferdeglueck
|
||||||
function create_potion_p9(r, mage, level, force)
|
function create_potion_p9(r, mage, level, force)
|
||||||
return create_item(mage, level, "p9", level)
|
return create_potion(mage, level, "p9", force)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Schaffenstrunk
|
-- Schaffenstrunk
|
||||||
function create_potion_p3(r, mage, level, force)
|
function create_potion_p3(r, mage, level, force)
|
||||||
return create_item(mage, level, "p3", level)
|
return create_potion(mage, level, "p3", force)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Heiltrank
|
-- Heiltrank
|
||||||
function create_potion_p14(r, mage, level, force)
|
function create_potion_p14(r, mage, level, force)
|
||||||
return create_item(mage, level, "p14", level)
|
return create_potion(mage, level, "p14", force)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Elixier der Macht
|
-- Elixier der Macht
|
||||||
function create_potion_p13(r, mage, level, force)
|
function create_potion_p13(r, mage, level, force)
|
||||||
return create_item(mage, level, "p13", level)
|
return create_potion(mage, level, "p13", force)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Erschaffe ein Flammenschwert
|
-- Erschaffe ein Flammenschwert
|
||||||
|
|
Loading…
Reference in New Issue