forked from github/server
Small fixes for the Igjarjuk-revival
This commit is contained in:
parent
0145b78d88
commit
1ed345b5bc
|
@ -229,7 +229,8 @@ no_teurefremde(boolean convert)
|
||||||
|
|
||||||
for(r=regions;r;r=r->next) {
|
for(r=regions;r;r=r->next) {
|
||||||
for(u=r->units;u;u=u->next) {
|
for(u=r->units;u;u=u->next) {
|
||||||
if(u->faction->no != MONSTER_FACTION
|
if (u->faction->no != MONSTER_FACTION
|
||||||
|
&& playerrace(u->faction->race)
|
||||||
&& is_migrant(u)
|
&& is_migrant(u)
|
||||||
&& kor_teure_talente(u))
|
&& kor_teure_talente(u))
|
||||||
{
|
{
|
||||||
|
@ -854,18 +855,6 @@ setup_locales(void)
|
||||||
#include <triggers/shock.h>
|
#include <triggers/shock.h>
|
||||||
#include <triggers/killunit.h>
|
#include <triggers/killunit.h>
|
||||||
|
|
||||||
static void
|
|
||||||
update_igjarjuk_quest(void)
|
|
||||||
{
|
|
||||||
unit * u;
|
|
||||||
faction *f = findfaction(atoi36("rr"));
|
|
||||||
|
|
||||||
if (!f) return;
|
|
||||||
for (u=f->units;u;u=u->nextF) {
|
|
||||||
u->race = new_race[RC_TEMPLATE];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#if RESOURCE_CONVERSION
|
#if RESOURCE_CONVERSION
|
||||||
extern struct attrib_type at_resources;
|
extern struct attrib_type at_resources;
|
||||||
|
@ -1175,7 +1164,6 @@ korrektur(void)
|
||||||
#else
|
#else
|
||||||
no_teurefremde(1);
|
no_teurefremde(1);
|
||||||
#endif
|
#endif
|
||||||
update_igjarjuk_quest();
|
|
||||||
fix_allies();
|
fix_allies();
|
||||||
update_gmquests(); /* test gm quests */
|
update_gmquests(); /* test gm quests */
|
||||||
/* fix_unitrefs(); */
|
/* fix_unitrefs(); */
|
||||||
|
|
|
@ -20,7 +20,7 @@ end
|
||||||
|
|
||||||
function process(orders)
|
function process(orders)
|
||||||
file = "" .. get_turn()
|
file = "" .. get_turn()
|
||||||
if read_game(file)~=0 then
|
if read_game(file)~=0 then
|
||||||
print("could not read game")
|
print("could not read game")
|
||||||
return -1
|
return -1
|
||||||
end
|
end
|
||||||
|
@ -34,6 +34,12 @@ function process(orders)
|
||||||
|
|
||||||
-- run the turn:
|
-- run the turn:
|
||||||
read_orders(orders)
|
read_orders(orders)
|
||||||
|
|
||||||
|
-- igjarjuk gets called:
|
||||||
|
require("igjarjuk-call.lua")
|
||||||
|
call_igjarjuk()
|
||||||
|
|
||||||
|
--
|
||||||
process_orders()
|
process_orders()
|
||||||
|
|
||||||
-- igjarjuk special
|
-- igjarjuk special
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
function teleport(u, r)
|
||||||
|
u.region:add_notice(tostring(u) .. " wird durchsichtig und verschwindet.")
|
||||||
|
u.region = r
|
||||||
|
u.region:add_notice(tostring(u) .. " erscheint.")
|
||||||
|
end
|
||||||
|
|
||||||
|
function call_igjarjuk()
|
||||||
|
u = get_unit(atoi36("50ki"))
|
||||||
|
if (u==nil) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
fog = u.region
|
||||||
|
|
||||||
|
laoris = get_unit(atoi36("cshL"))
|
||||||
|
wyrm = get_unit(atoi36("igjr"))
|
||||||
|
if (laoris==nil or wyrm==nil or laoris.region==fog) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
-- make him a special kind of wyrm
|
||||||
|
wyrm.race = "skeletal_wyrm"
|
||||||
|
wyrm.hp = 5000
|
||||||
|
wyrm.status = 1
|
||||||
|
wyrm.magic = "nomagic"
|
||||||
|
wyrm:set_skill("sk_magic", 20)
|
||||||
|
wyrm.aura = 1000
|
||||||
|
wyrm.faction:set_policy(laoris.faction, "fight", true)
|
||||||
|
wyrm.faction:set_policy(get_faction(atoi36("dpen")), "fight", true)
|
||||||
|
|
||||||
|
-- inform the folks in the grave about what's up
|
||||||
|
grave = wyrm.region
|
||||||
|
fog:add_notice(tostring(laoris) .. " schwingt die Schwinge des Greifen. Das Auge des Dämons glüht in hellem weißen Licht, Blitze springen auf " .. tostring(wyrm) .. " über.")
|
||||||
|
fog:add_notice(tostring(wyrm) .. " wird durchsichtig und verschwindet.")
|
||||||
|
fog:add_notice(tostring(laoris) .. " wird durchsichtig und verschwindet.")
|
||||||
|
|
||||||
|
-- andere Pentagramm-Meister
|
||||||
|
teleport(get_unit(atoi36("q7qf")), fog)
|
||||||
|
teleport(get_unit(atoi36("abqp")), fog)
|
||||||
|
|
||||||
|
-- Wyrm und Laoris
|
||||||
|
wyrm.region = fog
|
||||||
|
laoris.region = fog
|
||||||
|
|
||||||
|
fog:add_notice("von " .. tostring(wyrm) .. ": 'DER TAG MEINER RÜCKKEHR IST GEKOMMEN. MIT DEM BLUT DER STERBLICHEN WILL ICH AUF DIESEN TAG ANSTOSSEN.'")
|
||||||
|
fog:add_notice(tostring(laoris) .. " erscheint. Auf seinem Rücken sind die Schwingen eines mächtigen Greifen zu sehen, in seinen Händen hält er beschwörend einen hell leuchtenden Kristall, das Auge des Dämon.")
|
||||||
|
fog:add_notice(tostring(wyrm) .. " erscheint.")
|
||||||
|
fog:add_notice("von " .. tostring(wyrm) .. ": 'WAS IST DAS? DIES IST NICHT DIE WELT DER STERBLICHEN. LAORIS! WOHIN HAST DU MICH GEBRACHT?'")
|
||||||
|
end
|
Loading…
Reference in New Issue