forked from github/server
Merge pull request #683 from ennorehling/master
BUG 2318, 2315: Ponnuki, Plural
This commit is contained in:
commit
057f676d2c
|
@ -14,8 +14,10 @@ local function ponnuki_brain(u)
|
||||||
u:add_notice("Eine Botschaft von " .. tostring(u) .. ": " ..jokes[i])
|
u:add_notice("Eine Botschaft von " .. tostring(u) .. ": " ..jokes[i])
|
||||||
local d = math.random(6)
|
local d = math.random(6)
|
||||||
local r = u.region:next(d-1)
|
local r = u.region:next(d-1)
|
||||||
|
if r.terrain == 'glacier' then
|
||||||
u:clear_orders()
|
u:clear_orders()
|
||||||
u:add_order("NACH " .. directions[d])
|
u:add_order("NACH " .. directions[d])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function ponnuki.init()
|
function ponnuki.init()
|
||||||
|
@ -26,11 +28,18 @@ function ponnuki.init()
|
||||||
local home = get_region(-67, -5)
|
local home = get_region(-67, -5)
|
||||||
local f = get_faction(666)
|
local f = get_faction(666)
|
||||||
if home and f then
|
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.id = atoi36("ponn")
|
||||||
u.name = "Ponnuki"
|
u.name = "Ponnuki"
|
||||||
u.info = "Go, Ponnuki, Go!"
|
u.info = "Go, Ponnuki, Go!"
|
||||||
u:set_racename("Ritter von Go")
|
u.race_name = "Ritter von Go"
|
||||||
|
print(u:show())
|
||||||
|
end
|
||||||
else
|
else
|
||||||
eressea.log.error("Ponnuki cannot find Magrathea")
|
eressea.log.error("Ponnuki cannot find Magrathea")
|
||||||
end
|
end
|
||||||
|
|
|
@ -123,7 +123,7 @@ const char *parameters[MAXPARAMS] = {
|
||||||
"TEMP",
|
"TEMP",
|
||||||
"FLIEHE",
|
"FLIEHE",
|
||||||
"GEBAEUDE",
|
"GEBAEUDE",
|
||||||
"GIB", /* F<EFBFBD>r HELFE */
|
"GIB", /* HELFE GIB */
|
||||||
"KAEMPFE",
|
"KAEMPFE",
|
||||||
"DURCHREISE",
|
"DURCHREISE",
|
||||||
"BEWACHE",
|
"BEWACHE",
|
||||||
|
|
Loading…
Reference in New Issue