forked from github/server
warnings raus, dämonenauge funktioniert nicht in plane
This commit is contained in:
parent
98d96dcc15
commit
2d986dd5d7
|
@ -1063,8 +1063,6 @@ randomevents(void)
|
|||
/* Orkische vermehren sich */
|
||||
|
||||
for (r = regions; r; r = r->next) {
|
||||
|
||||
plane * p = rplane(r);
|
||||
for (u = r->units; u; u = u->next) {
|
||||
if (is_cursed(u->attribs, C_ORC, 0)
|
||||
&& !has_skill(u, SK_MAGIC) && !has_skill(u, SK_ALCHEMY)) {
|
||||
|
|
|
@ -17,7 +17,12 @@
|
|||
#include "demonseye.h"
|
||||
|
||||
/* kernel includes */
|
||||
#include <faction.h>
|
||||
#include <item.h>
|
||||
#include <message.h>
|
||||
#include <plane.h>
|
||||
#include <region.h>
|
||||
#include <unit.h>
|
||||
|
||||
/* util includes */
|
||||
#include <functions.h>
|
||||
|
@ -28,12 +33,16 @@
|
|||
static int
|
||||
summon_igjarjuk(struct unit * u, const struct item_type * itype, int amount, const char * cmd)
|
||||
{
|
||||
unused(u);
|
||||
struct plane * p = rplane(u->region);
|
||||
unused(amount);
|
||||
unused(itype);
|
||||
unused(cmd);
|
||||
assert(!"not implemented");
|
||||
return -1;
|
||||
if (p!=NULL) {
|
||||
ADDMSG(&u->faction->msgs, msg_error(u, cmd, "use_realworld_only", ""));
|
||||
return EUNUSABLE;
|
||||
} else {
|
||||
assert(!"not implemented");
|
||||
return EUNUSABLE;
|
||||
}
|
||||
}
|
||||
|
||||
static resource_type rt_demonseye = {
|
||||
|
|
|
@ -123,7 +123,7 @@ report_failure(unit * mage, const char * sa) {
|
|||
/* ------------------------------------------------------------- */
|
||||
|
||||
void
|
||||
do_shock(unit *u, char *reason)
|
||||
do_shock(unit *u, const char *reason)
|
||||
{
|
||||
#if SKILLPOINTS
|
||||
skill_t sk;
|
||||
|
@ -156,8 +156,8 @@ do_shock(unit *u, char *reason)
|
|||
remove_familiar(u);
|
||||
}
|
||||
|
||||
add_message(&u->faction->msgs, new_message(u->faction,
|
||||
"shock%u:mage%s:reason", u, strdup(reason)));
|
||||
ADDMSG(&u->faction->msgs, msg_message("shock",
|
||||
"mage reason", u, strdup(reason)));
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------- */
|
||||
|
|
|
@ -21,6 +21,7 @@ struct border_type;
|
|||
struct attrib_type;
|
||||
struct curse_type;
|
||||
struct castorder;
|
||||
struct curse;
|
||||
|
||||
/* Sprüche. Neue NUR hinten anfügen, oder das Datenfile geht kaputt */
|
||||
enum {
|
||||
|
@ -208,7 +209,7 @@ enum {
|
|||
|
||||
/* Prototypen */
|
||||
|
||||
void do_shock(struct unit *u, char *reason);
|
||||
void do_shock(struct unit *u, const char *reason);
|
||||
int use_item_power(struct region * r, struct unit * u);
|
||||
int use_item_regeneration(struct region * r, struct unit * u);
|
||||
void showspells(struct region *r, struct unit *u);
|
||||
|
|
|
@ -1196,6 +1196,16 @@
|
|||
</locale>
|
||||
</message>
|
||||
|
||||
<message name="use_realworld_only" section="errors">
|
||||
<type>
|
||||
<arg name="unit" type="unit"></arg>
|
||||
<arg name="region" type="region"></arg>
|
||||
<arg name="command" type="string"></arg>
|
||||
</type>
|
||||
<text locale="de">"$unit($unit) in $region($region): '$command' - Dieser Gegenstand kann nur in der realen Welt benutzt werden."</text>
|
||||
<text locale="en">"$unit($unit) in $region($region): '$command' - This object can only be used in the real world."</text>
|
||||
</message>
|
||||
|
||||
<message name="error65">
|
||||
<type>
|
||||
<arg name="unit" type="unit"></arg>
|
||||
|
|
Loading…
Reference in New Issue