forked from github/server
dn't warn new player about NMR.
newbie info text was no longer valid.
This commit is contained in:
parent
49ccb3825f
commit
402c19d8fc
8 changed files with 9 additions and 21 deletions
|
@ -57,7 +57,7 @@
|
||||||
<text locale="de">eressea-server@eressea.de</text>
|
<text locale="de">eressea-server@eressea.de</text>
|
||||||
<text locale="en">eressea-server@eressea.de</text>
|
<text locale="en">eressea-server@eressea.de</text>
|
||||||
</string>
|
</string>
|
||||||
<string name="newbie_info_1">
|
<string name="newbie_info_game">
|
||||||
<text locale="de">Bitte denke daran, deine Befehle mit dem Betreff
|
<text locale="de">Bitte denke daran, deine Befehle mit dem Betreff
|
||||||
ERESSEA 2 BEFEHLE an eressea-server@eressea.de zu senden.</text>
|
ERESSEA 2 BEFEHLE an eressea-server@eressea.de zu senden.</text>
|
||||||
<text locale="en">Remember to send your orders to
|
<text locale="en">Remember to send your orders to
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
<text locale="de">eressea-server@eressea.de</text>
|
<text locale="de">eressea-server@eressea.de</text>
|
||||||
<text locale="en">eressea-server@eressea.de</text>
|
<text locale="en">eressea-server@eressea.de</text>
|
||||||
</string>
|
</string>
|
||||||
<string name="newbie_info_1">
|
<string name="newbie_info_game">
|
||||||
<text locale="de">Bitte denke daran, deine Befehle mit dem Betreff
|
<text locale="de">Bitte denke daran, deine Befehle mit dem Betreff
|
||||||
ERESSEA 3 BEFEHLE an eressea-server@eressea.de zu senden.</text>
|
ERESSEA 3 BEFEHLE an eressea-server@eressea.de zu senden.</text>
|
||||||
<text locale="en">Remember to send your orders to
|
<text locale="en">Remember to send your orders to
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<text locale="de">eressea-server@eressea.de</text>
|
<text locale="de">eressea-server@eressea.de</text>
|
||||||
<text locale="en">eressea-server@eressea.de</text>
|
<text locale="en">eressea-server@eressea.de</text>
|
||||||
</string>
|
</string>
|
||||||
<string name="newbie_info_1">
|
<string name="newbie_info_game">
|
||||||
<text locale="de">Bitte denke daran, deine Befehle mit dem Betreff
|
<text locale="de">Bitte denke daran, deine Befehle mit dem Betreff
|
||||||
ERESSEA 4 BEFEHLE an eressea-server@eressea.de zu senden.</text>
|
ERESSEA 4 BEFEHLE an eressea-server@eressea.de zu senden.</text>
|
||||||
<text locale="en">Remember to send your orders to
|
<text locale="en">Remember to send your orders to
|
||||||
|
|
|
@ -268,13 +268,7 @@
|
||||||
<text locale="de">Muscheln</text>
|
<text locale="de">Muscheln</text>
|
||||||
<text locale="en">seashells</text>
|
<text locale="en">seashells</text>
|
||||||
</string>
|
</string>
|
||||||
|
<string name="newbie_info_cr">
|
||||||
<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="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 name="newbie_info_3">
|
|
||||||
<text locale="de">Mit der ersten Auswertung bekommst du einen
|
<text locale="de">Mit der ersten Auswertung bekommst du einen
|
||||||
Computerreport, den du mit vielen Tools wie z.B. Magellan benutzen kannst. Wenn du ihn
|
Computerreport, den du mit vielen Tools wie z.B. Magellan benutzen kannst. Wenn du ihn
|
||||||
weiterhin bekommen willst, gib einer deiner Einheiten den Befehl OPTION
|
weiterhin bekommen willst, gib einer deiner Einheiten den Befehl OPTION
|
||||||
|
|
|
@ -261,6 +261,7 @@ faction *addfaction(const char *email, const char *password,
|
||||||
f->magiegebiet = 0;
|
f->magiegebiet = 0;
|
||||||
f->locale = loc;
|
f->locale = loc;
|
||||||
f->subscription = subscription;
|
f->subscription = subscription;
|
||||||
|
f->flags = FFL_ISNEW;
|
||||||
|
|
||||||
f->options =
|
f->options =
|
||||||
want(O_REPORT) | want(O_ZUGVORLAGE) | want(O_COMPUTER) | want(O_COMPRESS) |
|
want(O_REPORT) | want(O_ZUGVORLAGE) | want(O_COMPUTER) | want(O_COMPRESS) |
|
||||||
|
|
|
@ -40,7 +40,6 @@ extern "C" {
|
||||||
/* faction flags */
|
/* faction flags */
|
||||||
#define FFL_NEWID (1<<0) /* Die Partei hat bereits einmal ihre no gewechselt */
|
#define FFL_NEWID (1<<0) /* Die Partei hat bereits einmal ihre no gewechselt */
|
||||||
#define FFL_ISNEW (1<<1)
|
#define FFL_ISNEW (1<<1)
|
||||||
#define FFL_RESTART (1<<2)
|
|
||||||
#define FFL_QUIT (1<<3)
|
#define FFL_QUIT (1<<3)
|
||||||
#define FFL_CURSED (1<<4) /* you're going to have a bad time */
|
#define FFL_CURSED (1<<4) /* you're going to have a bad time */
|
||||||
#define FFL_DEFENDER (1<<10)
|
#define FFL_DEFENDER (1<<10)
|
||||||
|
@ -52,8 +51,7 @@ extern "C" {
|
||||||
* FL_MARK hinterher löschen) */
|
* FL_MARK hinterher löschen) */
|
||||||
#define FFL_NOIDLEOUT (1<<24) /* Partei stirbt nicht an NMRs */
|
#define FFL_NOIDLEOUT (1<<24) /* Partei stirbt nicht an NMRs */
|
||||||
#define FFL_NPC (1<<25) /* eine Partei mit Monstern */
|
#define FFL_NPC (1<<25) /* eine Partei mit Monstern */
|
||||||
#define FFL_DBENTRY (1<<28) /* Partei ist in Datenbank eingetragen */
|
#define FFL_SAVEMASK (FFL_DEFENDER|FFL_NEWID|FFL_NPC|FFL_NOIDLEOUT|FFL_CURSED)
|
||||||
#define FFL_SAVEMASK (FFL_DEFENDER|FFL_NEWID|FFL_NPC|FFL_DBENTRY|FFL_NOIDLEOUT|FFL_CURSED)
|
|
||||||
|
|
||||||
typedef struct faction {
|
typedef struct faction {
|
||||||
struct faction *next;
|
struct faction *next;
|
||||||
|
|
|
@ -117,7 +117,7 @@ static void test_addfaction(CuTest *tc) {
|
||||||
CuAssertTrue(tc, checkpasswd(f, "hurrdurr"));
|
CuAssertTrue(tc, checkpasswd(f, "hurrdurr"));
|
||||||
CuAssertPtrEquals(tc, (void *)lang, (void *)f->locale);
|
CuAssertPtrEquals(tc, (void *)lang, (void *)f->locale);
|
||||||
CuAssertIntEquals(tc, 1234, f->subscription);
|
CuAssertIntEquals(tc, 1234, f->subscription);
|
||||||
CuAssertIntEquals(tc, 0, f->flags);
|
CuAssertIntEquals(tc, FFL_ISNEW, f->flags);
|
||||||
CuAssertIntEquals(tc, 0, f->age);
|
CuAssertIntEquals(tc, 0, f->age);
|
||||||
CuAssertTrue(tc, faction_alive(f));
|
CuAssertTrue(tc, faction_alive(f));
|
||||||
CuAssertIntEquals(tc, M_GRAY, f->magiegebiet);
|
CuAssertIntEquals(tc, M_GRAY, f->magiegebiet);
|
||||||
|
|
|
@ -2106,19 +2106,14 @@ const char *charset)
|
||||||
|
|
||||||
if (f->age <= 2) {
|
if (f->age <= 2) {
|
||||||
const char *s;
|
const char *s;
|
||||||
s = locale_getstring(f->locale, "newbie_info_1");
|
s = locale_getstring(f->locale, "newbie_info_game");
|
||||||
if (s) {
|
|
||||||
newline(out);
|
|
||||||
centre(out, s, true);
|
|
||||||
}
|
|
||||||
s = locale_getstring(f->locale, "newbie_info_2");
|
|
||||||
if (s) {
|
if (s) {
|
||||||
newline(out);
|
newline(out);
|
||||||
centre(out, s, true);
|
centre(out, s, true);
|
||||||
}
|
}
|
||||||
if ((f->options & want(O_COMPUTER)) == 0) {
|
if ((f->options & want(O_COMPUTER)) == 0) {
|
||||||
f->options |= want(O_COMPUTER);
|
f->options |= want(O_COMPUTER);
|
||||||
s = locale_getstring(f->locale, "newbie_info_3");
|
s = locale_getstring(f->locale, "newbie_info_cr");
|
||||||
if (s) {
|
if (s) {
|
||||||
newline(out);
|
newline(out);
|
||||||
centre(out, s, true);
|
centre(out, s, true);
|
||||||
|
|
Loading…
Reference in a new issue