evil_weapon.c
skylib_mudos_v1/mudlib/std/shadows/magic/evil_weapon.c · 526 B
From the archive skylib_mudos_v1.tar.gz
Download the archive « Back to the archive contents
inherit "/std/effect_shadow";
mixed attack_data = ({ });
int special_func();
void set_up_attacks(object player, int length) {
int i;
attack_data = player->query_attack_data();
for(i = 2; i < sizeof(attack_data); i += 5) {
if(attack_data[i] == "sharp") {
attack_data[i+2] = (:special_func:);
}
}
tell_object(ENV(player), "Set_up_attacks called successfully in "+file_name(TO)+", "
"attack_data is "+sprintf("%O", attack_data)+".\n");
}
mixed *query_attack_data() {
return copy(attack_data);
}