/* Fall through */
case 26:
case 27:
- case 28: {
+ case 28:
+ default: {
if (one_in_(13)) {
for (int i = 0; i < A_MAX; i++) {
do {
- (void)do_dec_stat(caster_ptr, i); //FIXED
+ (void)do_dec_stat(caster_ptr, i);
} while(one_in_(2));
}
} else {
default:
for (int i = 0; i < A_MAX; i++) {
do {
- (void)do_dec_stat(target_ptr, i); //FIXED
+ (void)do_dec_stat(target_ptr, i);
} while(one_in_(2));
}
}
#include "mutation/mutation-processor.h"
#include "spell-kind/spells-launcher.h"
#include "spell-kind/spells-teleport.h"
+#include "spell-kind/spells-random.h"
#include "spell-realm/spells-chaos.h"
#include "spell/spells-status.h"
#include "spell/summon-types.h"
{ 2, "vanish dungeon", { .spell2 = { vanish_dungeon } } },
{ 3, "true healing", { .spell3 = { true_healing } } },
{ 2, "drop weapons", { .spell2 = { drop_weapons } } },
+ { 4, "ty curse", { .spell4 = { activate_ty_curse } } },
};
/*!
(*(debug_spell_commands_list[i].command_function.spell3.spell_function))(creature_ptr, tmp_int);
return true;
break;
+ case 4:
+ (*(debug_spell_commands_list[i].command_function.spell4.spell_function))(creature_ptr, true, &tmp_int);
+ return true;
+ break;
default:
break;
}
#include "system/angband.h"
#include "spell/spell-types.h"
-#define SPELL_MAX 3
+#define SPELL_MAX 4
typedef struct floor_type floor_type;
typedef struct player_type player_type;
bool (*spell_function)(player_type *, HIT_POINT);
} spell3;
+ struct debug_spell_type4 { // 実質 ty curse
+ bool (*spell_function)(player_type *, bool, int*);
+ } spell4;
+
} spell_functions;
typedef struct debug_spell_command {