1 #include "load/player-attack-loader.h"
2 #include "load/angband-version-comparer.h"
3 #include "load/load-util.h"
4 #include "load/load-zangband.h"
5 #include "player/attack-defense-types.h"
6 #include "player/special-defense-types.h"
8 void rd_special_attack(player_type *creature_ptr)
10 if (z_older_than(10, 0, 9)) {
11 set_zangband_special_attack(creature_ptr);
15 rd_s16b(&creature_ptr->ele_attack);
16 rd_u32b(&creature_ptr->special_attack);
19 void rd_special_action(player_type *creature_ptr)
21 if (creature_ptr->special_attack & KAMAE_MASK) {
22 creature_ptr->action = ACTION_KAMAE;
26 if (creature_ptr->special_attack & KATA_MASK)
27 creature_ptr->action = ACTION_KATA;
30 void rd_special_defense(player_type *creature_ptr)
32 if (z_older_than(10, 0, 12)) {
33 set_zangband_special_defense(creature_ptr);
37 rd_s16b(&creature_ptr->ele_immune);
38 rd_u32b(&creature_ptr->special_defense);
41 void rd_action(player_type *creature_ptr)
46 creature_ptr->action = (ACTION_IDX)tmp8u;
47 if (!z_older_than(10, 4, 3))
48 set_zangband_action(creature_ptr);