2014-07-26 23:41:56 +02:00
|
|
|
require 'eressea.spells'
|
2018-05-13 21:58:01 +02:00
|
|
|
eressea.log.debug('rules for game E2')
|
|
|
|
|
2018-05-14 22:01:32 +02:00
|
|
|
math.randomseed(rng.random())
|
|
|
|
|
2018-05-13 21:58:01 +02:00
|
|
|
local equipment = require('eressea.equipment')
|
2018-06-24 18:08:19 +02:00
|
|
|
|
2018-05-13 21:58:01 +02:00
|
|
|
local sets = {
|
2018-05-14 22:01:32 +02:00
|
|
|
['seed_faction'] = {
|
|
|
|
['items'] = {
|
|
|
|
['adamantium'] = 1
|
|
|
|
}
|
|
|
|
},
|
2018-05-13 21:58:01 +02:00
|
|
|
['new_orc'] = {
|
|
|
|
['skills'] = {
|
|
|
|
['polearm'] = 1,
|
|
|
|
['melee'] = 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
['spo_seaserpent'] = {
|
|
|
|
['items'] = {
|
|
|
|
['dragonblood'] = 6,
|
|
|
|
['seaserpenthead'] = 1
|
|
|
|
}
|
2018-05-14 04:42:59 +02:00
|
|
|
},
|
|
|
|
['spo_dragon'] = {
|
|
|
|
['items'] = {
|
|
|
|
['dragonblood'] = 4,
|
|
|
|
['seaserpenthead'] = 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
['spo_dragon'] = {
|
|
|
|
['items'] = {
|
|
|
|
['dragonblood'] = 4,
|
|
|
|
['dragonhead'] = 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
['spo_youngdragon'] = {
|
|
|
|
['items'] = {
|
|
|
|
['dragonblood'] = 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
['spo_wyrm'] = {
|
|
|
|
['items'] = {
|
|
|
|
['dragonblood'] = 10,
|
|
|
|
['dragonhead'] = 1
|
|
|
|
}
|
2018-05-14 22:01:32 +02:00
|
|
|
},
|
|
|
|
['seed_dragon'] = {
|
|
|
|
['skills'] = {
|
|
|
|
['magic'] = 4,
|
|
|
|
['stealth'] = 1,
|
|
|
|
['stamina'] = 1,
|
|
|
|
},
|
|
|
|
['callback'] = function(u)
|
|
|
|
u:add_item('money', u.number * (math.random(500)+99))
|
|
|
|
u:set_skill('perception', math.random(3))
|
|
|
|
end
|
|
|
|
},
|
|
|
|
['seed_braineater'] = {
|
|
|
|
['skills'] = {
|
|
|
|
['stealth'] = 1,
|
|
|
|
['perception'] = 1,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
['seed_seaserpent'] = {
|
|
|
|
['skills'] = {
|
|
|
|
['magic'] = 4,
|
|
|
|
['stealth'] = 2,
|
|
|
|
['stamina'] = 1,
|
|
|
|
['perception'] = 3,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
['rising_undead'] = {
|
|
|
|
['items'] = {
|
|
|
|
['rustysword'] = 1
|
|
|
|
},
|
|
|
|
['callback'] = function(u)
|
|
|
|
if (math.random(2)==1) then
|
|
|
|
u:add_item('rustychainmail', u.number)
|
|
|
|
end
|
|
|
|
if (math.random(3)==1) then
|
|
|
|
u:add_item('rustyshield', u.number)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
},
|
|
|
|
['new_dracoid'] = {
|
|
|
|
['callback'] = function(u)
|
|
|
|
local pick = math.random(3)
|
|
|
|
if pick==1 then
|
|
|
|
u:set_skill('melee', math.random(4)+2)
|
|
|
|
u:add_item('sword', u.number)
|
|
|
|
elseif pick==2 then
|
|
|
|
u:set_skill('polearm', math.random(4)+2)
|
|
|
|
u:add_item('spear', u.number)
|
|
|
|
else
|
|
|
|
u:set_skill('bow', math.random(3)+1)
|
|
|
|
u:add_item('bow', u.number)
|
|
|
|
end
|
|
|
|
end
|
2018-05-13 21:58:01 +02:00
|
|
|
}
|
|
|
|
}
|
2018-05-14 22:01:32 +02:00
|
|
|
|
2018-05-13 21:58:01 +02:00
|
|
|
equipment.add_multiple(sets)
|
2014-07-26 23:41:56 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
require('eressea'),
|
2016-09-08 20:34:25 +02:00
|
|
|
require('eressea.autoseed'),
|
2015-11-26 21:13:01 +01:00
|
|
|
require('eressea.xmas'),
|
|
|
|
require('eressea.xmasitems'),
|
2014-07-26 23:41:56 +02:00
|
|
|
require('eressea.wedding'),
|
|
|
|
require('eressea.embassy'),
|
|
|
|
require('eressea.tunnels'),
|
2017-04-22 13:52:45 +02:00
|
|
|
require('eressea.ponnuki'),
|
2014-07-26 23:41:56 +02:00
|
|
|
require('eressea.astral'),
|
2015-04-04 09:19:10 +02:00
|
|
|
require('eressea.jsreport'),
|
2015-08-31 11:19:16 +02:00
|
|
|
require('eressea.ents'),
|
2018-05-13 21:58:01 +02:00
|
|
|
require('eressea.cursed'),
|
2018-05-15 06:58:07 +02:00
|
|
|
require('eressea.e2.familiars')
|
2014-07-26 23:41:56 +02:00
|
|
|
}
|