forked from github/server
Implemntation Stardust
This commit is contained in:
parent
76976a970e
commit
3372e17530
|
@ -1,5 +1,28 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1" ?>
|
||||
<strings>
|
||||
<namespace name="iteminfo">
|
||||
<string name="seashell">
|
||||
<text locale="en">
|
||||
This badge pronounces its wearer an official visitor to the
|
||||
region of Muschelplateau.
|
||||
</text>
|
||||
<text locale="de">
|
||||
Dieses Abzeichen identifiziert die Partei seines Träger offiziell
|
||||
als einen Bescuher der Botschafterregion 'Muschelplateau'.
|
||||
</text>
|
||||
</string>
|
||||
<string name="stardust">
|
||||
<text locale="de">
|
||||
Dieser magische Staub ist aus einem im Winter vom Himmel gefallenen
|
||||
Stern gewonnen worden, und ihm werden aphrodisiakische Eigenschaften
|
||||
nachgesagt.
|
||||
</text>
|
||||
<text locale="en">
|
||||
This vial of dust, made from the remains of a star that fell from
|
||||
the sky one cold winter night, is said to have aphrodisiacal powers.
|
||||
</text>
|
||||
</string>
|
||||
</namespace>
|
||||
<string name="seashell">
|
||||
<text locale="de">Muschel</text>
|
||||
<text locale="en">seashell</text>
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
function usepotion_message(u, type)
|
||||
msg = message("usepotion")
|
||||
msg:set_unit("unit", u)
|
||||
msg:set_resource("potion", type)
|
||||
return msg
|
||||
end
|
||||
|
||||
function use_stardust(u, amount)
|
||||
local p = u.region:get_resource("peasant")
|
||||
p = math.ceil(1.5 * p)
|
||||
u.region:set_resource("peasant", p)
|
||||
local msg = usepotion_message(u, "stardust")
|
||||
msg:send_region(u.region)
|
||||
end
|
||||
|
||||
function xmas2005()
|
||||
print(get_gamename())
|
||||
if get_gamename() == "Eressea" then
|
||||
|
|
Loading…
Reference in New Issue