forked from github/server
- aurapotion50
This commit is contained in:
parent
075bcbff4a
commit
b877fb4c5f
|
@ -101,7 +101,7 @@ static resource_type rt_hornofdancing = {
|
|||
|
||||
item_type it_hornofdancing = {
|
||||
&rt_hornofdancing, /* resourcetype */
|
||||
0, 0, 0, /* flags, weight, capacity */
|
||||
0, 1, 0, /* flags, weight, capacity */
|
||||
NULL, /* construction */
|
||||
&use_hornofdancing,
|
||||
NULL,
|
||||
|
@ -149,13 +149,47 @@ static resource_type rt_trappedairelemental = {
|
|||
|
||||
item_type it_trappedairelemental = {
|
||||
&rt_trappedairelemental, /* resourcetype */
|
||||
0, 0, 0, /* flags, weight, capacity */
|
||||
0, 1, 0, /* flags, weight, capacity */
|
||||
NULL, /* construction */
|
||||
&use_trappedairelemental,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
static int
|
||||
use_aurapotion50(struct unit * u, const struct item_type * itype,
|
||||
int amount, const char *cm)
|
||||
{
|
||||
if(!is_mage(u)) {
|
||||
cmistake(u, cm, 214, MSG_MAGIC);
|
||||
return 0;
|
||||
}
|
||||
|
||||
change_spellpoints(u, 50);
|
||||
|
||||
ADDMSG(&u->faction->msgs, msg_message("aurapotion50",
|
||||
"unit region command", u, u->region, cm));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static resource_type rt_aurapotion50 = {
|
||||
{ "aurapotion50", "aurapotion50_p" },
|
||||
{ "aurapotion50", "aurapotion50_p" },
|
||||
RTF_ITEM,
|
||||
&res_changeitem
|
||||
};
|
||||
|
||||
item_type it_aurapotion50 = {
|
||||
&rt_aurapotion50, /* resourcetype */
|
||||
0, 1, 0, /* flags, weight, capacity */
|
||||
NULL, /* construction */
|
||||
&use_aurapotion50,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
register_artrewards(void)
|
||||
{
|
||||
|
@ -164,5 +198,7 @@ register_artrewards(void)
|
|||
register_function((pf_generic)use_hornofdancing, "usehornofdancing");
|
||||
it_register(&it_trappedairelemental);
|
||||
register_function((pf_generic)use_trappedairelemental, "trappedairelemental");
|
||||
it_register(&it_aurapotion50);
|
||||
register_function((pf_generic)use_aurapotion50, "aurapotion50");
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ extern "C" {
|
|||
|
||||
extern struct item_type it_hornofdancing;
|
||||
extern struct item_type it_trappedairelemental;
|
||||
extern struct item_type it_aurapotion50;
|
||||
extern struct item_type it_bagpipeoffear;
|
||||
extern struct item_type it_instantartacademie;
|
||||
extern struct item_type it_instantartsculpture;
|
||||
|
|
|
@ -5862,6 +5862,16 @@
|
|||
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - Die $ship($ship) wird jetzt schneller ihr Ziel erreichen."</text>
|
||||
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - The $ship($ship) will now be faster."</text>
|
||||
</message>
|
||||
|
||||
<message name="aurapotion50" section="magic">
|
||||
<type>
|
||||
<arg name="unit" type="unit"/>
|
||||
<arg name="region" type="region"/>
|
||||
<arg name="command" type="order"/>
|
||||
</type>
|
||||
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - Der Magier fühlt sich durch den Trank magische gestärkt."</text>
|
||||
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - The mage is magically invigorated."</text>
|
||||
</message>
|
||||
|
||||
</messages>
|
||||
|
||||
|
|
Loading…
Reference in New Issue