Merge branch 'master' of github.com:eressea/server

This commit is contained in:
Enno Rehling 2017-04-09 13:56:10 +02:00
commit b9b1a71d89
2 changed files with 17 additions and 8 deletions

View File

@ -14,9 +14,11 @@ local function ponnuki_brain(u)
u:add_notice("Eine Botschaft von " .. tostring(u) .. ": " ..jokes[i])
local d = math.random(6)
local r = u.region:next(d-1)
if r.terrain == 'glacier' then
u:clear_orders()
u:add_order("NACH " .. directions[d])
end
end
function ponnuki.init()
-- initialize other scripts
@ -26,11 +28,18 @@ function ponnuki.init()
local home = get_region(-67, -5)
local f = get_faction(666)
if home and f then
u = unit.create(f, home, 1, "illusion")
if home.terrain~="glacier" then
home.terrain="glacier"
home.name = 'Magrathea'
end
u = unit.create(f, home, 1, "template")
if u then
u.id = atoi36("ponn")
u.name = "Ponnuki"
u.info = "Go, Ponnuki, Go!"
u:set_racename("Ritter von Go")
u.race_name = "Ritter von Go"
print(u:show())
end
else
eressea.log.error("Ponnuki cannot find Magrathea")
end

View File

@ -123,7 +123,7 @@ const char *parameters[MAXPARAMS] = {
"TEMP",
"FLIEHE",
"GEBAEUDE",
"GIB", /* F<EFBFBD>r HELFE */
"GIB", /* HELFE GIB */
"KAEMPFE",
"DURCHREISE",
"BEWACHE",