forked from github/server
always default-fumble to report failure.
This commit is contained in:
parent
9230a0a074
commit
8b0518690f
|
@ -1269,7 +1269,8 @@ do_fumble(castorder *co)
|
||||||
switch (rand() % 10) {
|
switch (rand() % 10) {
|
||||||
case 0:
|
case 0:
|
||||||
/* wenn vorhanden spezieller Patzer, ansonsten nix */
|
/* wenn vorhanden spezieller Patzer, ansonsten nix */
|
||||||
sp->patzer(co);
|
if (sp->patzer) sp->patzer(co);
|
||||||
|
else patzer(co);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
@ -177,7 +177,7 @@ extern "C" {
|
||||||
SPL_TYBIED_FUMBLESHIELD,
|
SPL_TYBIED_FUMBLESHIELD,
|
||||||
SPL_SHADOWKNIGHTS,
|
SPL_SHADOWKNIGHTS,
|
||||||
LUASPL_FIRESWORD,
|
LUASPL_FIRESWORD,
|
||||||
SPL_CREATE_TACTICCRYSTAL,
|
LUASPL_CREATE_TACTICCRYSTAL,
|
||||||
SPL_ITEMCLOAK,
|
SPL_ITEMCLOAK,
|
||||||
SPL_FIREWALL,
|
SPL_FIREWALL,
|
||||||
SPL_WISPS,
|
SPL_WISPS,
|
||||||
|
@ -287,7 +287,8 @@ extern "C" {
|
||||||
extern struct spell_list * spells;
|
extern struct spell_list * spells;
|
||||||
extern void init_spells(void);
|
extern void init_spells(void);
|
||||||
extern void register_spell(struct spell * sp);
|
extern void register_spell(struct spell * sp);
|
||||||
struct spell * find_spell(magic_t mtype, const char * name);
|
extern struct spell * find_spell(magic_t mtype, const char * name);
|
||||||
|
extern void patzer(struct castorder *co);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue