forked from github/server
parent
09d3a99006
commit
ad692ba667
|
@ -98,7 +98,7 @@ free_orders(order ** olist)
|
||||||
order *
|
order *
|
||||||
parse_order(const char * s, const struct locale * lang)
|
parse_order(const char * s, const struct locale * lang)
|
||||||
{
|
{
|
||||||
while (!isalnum(*(unsigned char*)s)) ++s;
|
while (*s && !isalnum(*(unsigned char*)s) && !ispunct(*(unsigned char*)s)) ++s;
|
||||||
if (*s==0) return NULL;
|
if (*s==0) return NULL;
|
||||||
else {
|
else {
|
||||||
const char * sptr;
|
const char * sptr;
|
||||||
|
|
|
@ -40,6 +40,10 @@
|
||||||
<text locale="de">eressea-server@eressea.upb.de</text>
|
<text locale="de">eressea-server@eressea.upb.de</text>
|
||||||
<text locale="en">eressea-server@eressea.upb.de</text>
|
<text locale="en">eressea-server@eressea.upb.de</text>
|
||||||
</string>
|
</string>
|
||||||
|
<string name="newbie_info_1">
|
||||||
|
<text locale="de">Bitte denke daran, deine Befehle mit dem Betreff ERESSEA BEFEHLE an eressea-server@eressea.upb.de zu senden. Am besten, du verwendest die Befehlsvorlage am Ende des Reports.</text>
|
||||||
|
<text locale="en">Remember to send your orders to eressea-server@eressea.upb.de with the subject ERESSEA ORDERS.</text>
|
||||||
|
</string>
|
||||||
<string name="mailcmd">
|
<string name="mailcmd">
|
||||||
<text locale="de">ERESSEA BEFEHLE</text>
|
<text locale="de">ERESSEA BEFEHLE</text>
|
||||||
<text locale="en">ERESSEA ORDERS</text>
|
<text locale="en">ERESSEA ORDERS</text>
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
<?xml version="1.0" encoding="iso-8859-1" ?>
|
<?xml version="1.0" encoding="iso-8859-1" ?>
|
||||||
<strings>
|
<strings>
|
||||||
<string name="newbie_info_1">
|
|
||||||
<text locale="de">Bitte denke daran, deine Befehle mit dem Betreff ERESSEA BEFEHLE an eressea-server@eressea.upb.de zu senden. Am besten, du verwendest die Befehlsvorlage am Ende des Reports.</text>
|
|
||||||
</string>
|
|
||||||
<string name="newbie_info_2">
|
<string name="newbie_info_2">
|
||||||
<text locale="de">Die ersten beiden Züge mußt du abgeben, sonst wird deine Partei sofort wieder gelöscht, um Karteileichen zu vermeiden.</text>
|
<text locale="de">Die ersten beiden Züge mußt du abgeben, sonst wird deine Partei sofort wieder gelöscht, um Karteileichen zu vermeiden.</text>
|
||||||
</string>
|
</string>
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
<strings>
|
<strings>
|
||||||
<string name="newbie_info_1">
|
|
||||||
<text locale="en">Remember to send your orders to eressea-server@eressea.upb.de with the subject ERESSEA ORDERS.</text>
|
|
||||||
</string>
|
|
||||||
<string name="newbie_info_2">
|
<string name="newbie_info_2">
|
||||||
<text locale="en">If you fail to send in orders for one of the first two turns, your faction will be erased from the game to reduce the number of inactive players in Eressea.</text>
|
<text locale="en">If you fail to send in orders for one of the first two turns, your faction will be erased from the game to reduce the number of inactive players in Eressea.</text>
|
||||||
</string>
|
</string>
|
||||||
|
|
|
@ -44,6 +44,10 @@
|
||||||
<xi:include href="eressea/dungeons.xml"/>
|
<xi:include href="eressea/dungeons.xml"/>
|
||||||
<xi:include href="eressea/temple.xml"/>
|
<xi:include href="eressea/temple.xml"/>
|
||||||
<strings>
|
<strings>
|
||||||
|
<string name="newbie_info_1">
|
||||||
|
<text locale="de">Bitte denke daran, deine Befehle mit dem Betreff ERESSEA BEFEHLE an hse-server@eressea.de zu senden. Am besten, du verwendest die Befehlsvorlage am Ende des Reports.</text>
|
||||||
|
<text locale="en">Remember to send your orders to hse-server@eressea.de with the subject ERESSEA ORDERS.</text>
|
||||||
|
</string>
|
||||||
<string name="mailto">
|
<string name="mailto">
|
||||||
<text locale="de">hse-server@eressea.de</text>
|
<text locale="de">hse-server@eressea.de</text>
|
||||||
<text locale="en">hse-server@eressea.de</text>
|
<text locale="en">hse-server@eressea.de</text>
|
||||||
|
|
|
@ -52,8 +52,6 @@ function process(orders)
|
||||||
plan_monsters()
|
plan_monsters()
|
||||||
process_orders()
|
process_orders()
|
||||||
|
|
||||||
refresh_pool()
|
|
||||||
|
|
||||||
write_passwords()
|
write_passwords()
|
||||||
write_reports()
|
write_reports()
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,12 @@ function write_emails()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function refresh_pool()
|
||||||
|
for f in factions() do
|
||||||
|
f:add_item("money", 50)
|
||||||
|
end
|
||||||
|
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
|
||||||
|
@ -46,6 +52,8 @@ function process(orders)
|
||||||
plan_monsters()
|
plan_monsters()
|
||||||
process_orders()
|
process_orders()
|
||||||
|
|
||||||
|
refresh_pool()
|
||||||
|
|
||||||
write_passwords()
|
write_passwords()
|
||||||
write_reports()
|
write_reports()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue