Searched refs:weapon (Results 1 - 12 of 12) sorted by relevance

/netbsd-current/games/rogue/
H A Dthrow.c67 object *weapon; local
87 if (!(weapon = get_letter_object(wch))) {
91 if ((weapon->in_use_flags & BEING_USED) && weapon->is_cursed) {
97 if ((weapon->in_use_flags & BEING_WIELDED) && (weapon->quantity <= 1)) {
98 unwield(rogue.weapon);
99 } else if (weapon->in_use_flags & BEING_WORN) {
103 } else if (weapon->in_use_flags & ON_EITHER_HAND) {
104 un_put_on(weapon);
127 throw_at_monster(object *monster, object *weapon) argument
204 flop_weapon(object *weapon, short row, short col) argument
[all...]
H A Dhit.c133 hit_chance = force_hit ? 100 : get_hit_chance(rogue.weapon);
145 damage = get_weapon_damage(rogue.weapon);
436 get_hit_chance(const object *weapon) argument
441 hit_chance += 3 * to_hit(weapon);
447 get_weapon_damage(const object *weapon) argument
451 damage = get_w_damage(weapon);
H A Duse.c217 if (rogue.weapon) {
218 if (rogue.weapon->what_is == WEAPON) {
220 name_of(rogue.weapon),
221 ((rogue.weapon->quantity <= 1) ? "s" : ""),
224 rogue.weapon->hit_enchant++;
226 rogue.weapon->d_enchant++;
229 rogue.weapon->is_cursed = 0;
H A Dpack.c178 unwield(rogue.weapon);
393 if (rogue.weapon && rogue.weapon->is_cursed) {
414 unwield(rogue.weapon);
425 rogue.weapon = obj;
435 rogue.weapon = NULL;
H A Dinventory.c169 {'w', "w wield a weapon"},
184 {')', ") print current weapon"},
751 if (rogue.weapon) {
752 single_inv(rogue.weapon->ichar);
820 id = "weapon";
H A Drogue.h258 object *weapon; member in struct:fightr
H A Dscore.c142 unwield(rogue.weapon); /* disarm and relax */
/netbsd-current/external/bsd/libevent/dist/test/
H A Dregress.rpc11 string weapon = 0x10121;
H A Dregress_rpc.c124 EVTAG_ASSIGN(kill_reply, weapon, "dagger");
332 char *weapon; local
346 if (EVTAG_GET(xkill, weapon, &weapon) == -1) {
347 fprintf(stderr, "get weapon\n");
355 if (strcmp(weapon, "dagger"))
371 char *weapon; local
377 if (EVTAG_GET(xkill, weapon, &weapon) == -1) {
378 fprintf(stderr, "get weapon\
[all...]
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/test/
H A Dregress.rpc11 string weapon = 0x10121;
H A Dregress_rpc.c123 EVTAG_ASSIGN(kill_reply, weapon, "dagger");
331 char *weapon; local
345 if (EVTAG_GET(kill, weapon, &weapon) == -1) {
346 fprintf(stderr, "get weapon\n");
354 if (strcmp(weapon, "dagger"))
370 char *weapon; local
376 if (EVTAG_GET(kill, weapon, &weapon) == -1) {
377 fprintf(stderr, "get weapon\
[all...]
/netbsd-current/games/warp/
H A DMakefile9 them.c us.c util.c version.c warp.c weapon.c

Completed in 153 milliseconds