Home
last modified time | relevance | path

Searched refs:damage (Results 1 – 25 of 161) sorted by relevance

1234567

/netbsd-src/games/rogue/
H A Dhit.c68 short damage, hit_chance; in mon_hit() local
102 damage = get_damage(monster->m_damage, 1); in mon_hit()
107 minus = minus/100.00 * (float)damage; in mon_hit()
109 damage -= (short)minus; in mon_hit()
111 damage = monster->stationary_damage++; in mon_hit()
114 damage /= 3; in mon_hit()
116 if (damage > 0) { in mon_hit()
117 rogue_damage(damage, monster, 0); in mon_hit()
127 short damage, hit_chance; in rogue_hit() local
145 damage = get_weapon_damage(rogue.weapon); in rogue_hit()
[all …]
H A Dzap.c284 short i, ch, new_dir = -1, damage; in bounce() local
343 damage = monster->hp_to_kill; in bounce()
345 damage = (monster->hp_to_kill / 10) + 1; in bounce()
347 damage = get_rand((rogue.hp_current / 3), rogue.hp_max); in bounce()
350 damage = (monster->hp_to_kill / 2) + 1; in bounce()
354 (void)mon_damage(monster, damage); in bounce()
356 damage = -1; in bounce()
363 damage = rogue.hp_current / 4; in bounce()
366 damage = -2; in bounce()
368 if (damage != -1) { in bounce()
[all …]
H A Dthrow.c129 short damage, hit_chance; in throw_at_monster() local
133 damage = get_weapon_damage(weapon); in throw_at_monster()
136 damage += get_weapon_damage(rogue.weapon); in throw_at_monster()
137 damage = ((damage * 2) / 3); in throw_at_monster()
143 damage = ((damage * 3) / 2); in throw_at_monster()
157 (void)mon_damage(monster, damage); in throw_at_monster()
H A Dobject.c538 obj->damage = "1d1"; in gr_weapon()
541 obj->damage = "1d2"; in gr_weapon()
544 obj->damage = "1d3"; in gr_weapon()
547 obj->damage = "1d4"; in gr_weapon()
550 obj->damage = "2d3"; in gr_weapon()
553 obj->damage = "3d4"; in gr_weapon()
556 obj->damage = "4d5"; in gr_weapon()
643 obj->damage = "1d1"; in alloc_object()
H A Dinit.c171 obj->damage = "2d3"; in player_init()
180 obj->damage = "1d2"; in player_init()
190 obj->damage = "1d2"; in player_init()
/netbsd-src/games/warp/
H A Dus.c56 if (!damage || !damflag[NOTRACTORS]) { in do_direction()
58 damage++; in do_direction()
67 else if (!damage || in do_direction()
71 damage++; in do_direction()
121 if (!damage || !damflag[NOPHASERS]) { in ctrl_direction()
123 damage++; in ctrl_direction()
146 if (!damage || !damflag[NOTORPS]) { in shift_direction()
148 damage++; in shift_direction()
272 if (ent && (!damage || !damflag[NOIMPULSE])) { in get_commands()
278 if (ent && (!damage || !damflag[NOWARP])) { in get_commands()
[all …]
H A Dscore.c275 damage = 0; in display_status()
296 if (damage) { in display_status()
299 if (damage > 1 || !damflag[dam]) { in display_status()
306 olddamage = damage; in display_status()
307 damage--; in display_status()
313 olddamage = damage; in display_status()
322 olddamage = damage; in display_status()
333 tmp = damflag[dam] * damage; in display_status()
365 if ((!damage || !damflag[dam]) && curscore != oldcurscore) { in display_status()
H A Dmove.c178 damage++; in move_universe()
275 (damage <= smarts/10 && in move_universe()
285 damage++; in move_universe()
590 if (damage) { in move_universe()
597 if (curobj->energy >= 500 && (!damage || !damflag[NOSHIELDS])) in move_universe()
/netbsd-src/external/mit/xorg/lib/libxcb/files/
H A Ddamage.c106 xcb_damage_damage_t damage, in xcb_damage_create_checked() argument
121 xcb_out.damage = damage; in xcb_damage_create_checked()
137 xcb_damage_damage_t damage, in xcb_damage_create() argument
152 xcb_out.damage = damage; in xcb_damage_create()
168 xcb_damage_damage_t damage) in xcb_damage_destroy_checked() argument
181 xcb_out.damage = damage; in xcb_damage_destroy_checked()
194 xcb_damage_damage_t damage) in xcb_damage_destroy() argument
207 xcb_out.damage = damage; in xcb_damage_destroy()
220 xcb_damage_damage_t damage, in xcb_damage_subtract_checked() argument
235 xcb_out.damage = damage; in xcb_damage_subtract_checked()
[all …]
H A Ddamage.h105 xcb_damage_damage_t damage; member
121 xcb_damage_damage_t damage; member
134 xcb_damage_damage_t damage; member
164 xcb_damage_damage_t damage; member
293 xcb_damage_damage_t damage,
336 xcb_damage_damage_t damage,
356 xcb_damage_damage_t damage);
371 xcb_damage_damage_t damage);
390 xcb_damage_damage_t damage,
408 xcb_damage_damage_t damage,
/netbsd-src/sys/external/bsd/drm2/dist/drm/
H A Ddrm_damage_helper.c171 struct drm_property_blob *damage = NULL; in drm_atomic_helper_dirtyfb() local
206 damage = drm_property_create_blob(fb->dev, in drm_atomic_helper_dirtyfb()
209 if (IS_ERR(damage)) { in drm_atomic_helper_dirtyfb()
210 ret = PTR_ERR(damage); in drm_atomic_helper_dirtyfb()
211 damage = NULL; in drm_atomic_helper_dirtyfb()
236 damage); in drm_atomic_helper_dirtyfb()
249 drm_property_blob_put(damage); in drm_atomic_helper_dirtyfb()
/netbsd-src/external/mit/xorg/server/xorg-server/miext/damage/
H A DMakefile.damage3 .PATH: ${X11SRCDIR.xorg-server}/miext/damage
4 SRCS.damage= damage.c
H A DMakefile7 LIB= damage
8 SRCS= ${SRCS.damage}
/netbsd-src/external/mit/xorg/server/xorg-server.old/miext/damage/
H A DMakefile.damage3 .PATH: ${X11SRCDIR.xorg-server}/miext/damage
4 SRCS.damage= damage.c
H A DMakefile7 LIB= damage
8 SRCS= ${SRCS.damage}
/netbsd-src/games/phantasia/
H A DCOPYRIGHT19 * The author shall not be responsible for any loss, cost, or damage,
20 * including consequential damage, caused by reliance on this material.
/netbsd-src/games/trek/
H A Dwarp.c131 damage(WARP, repairs); in warp()
197 damage(i, (3.0 * (franf() + franf()) + 1.0) * Param.damfac[i]); in warp()
/netbsd-src/games/larn/
H A Dtok.c154 i = ((6 + k) * mp->damage + 1) / 5; in sethard()
155 mp->damage = (i > 127) ? 127 : i; in sethard()
/netbsd-src/external/mit/xorg/server/xorg-server/hw/vfb/
H A DMakefile57 ${LDADD.miext/damage} \
91 ${DPADD.miext/damage} \
/netbsd-src/external/mit/xorg/server/xorg-server.old/hw/vfb/
H A DMakefile66 ${LDADD.miext/damage} \
96 ${DPADD.miext/damage} \
/netbsd-src/external/mit/xorg/server/xorg-server.old/hw/xnest/
H A DMakefile62 ${LDADD.miext/damage} \
87 ${DPADD.miext/damage} \
/netbsd-src/external/mit/xorg/server/xorg-server.old/hw/netbsd/alpha/
H A DMakefile87 ${LDADD.miext/damage} \
109 ${DPADD.miext/damage} \
/netbsd-src/external/mit/xorg/server/xorg-server/hw/xnest/
H A DMakefile62 ${LDADD.miext/damage} \
89 ${DPADD.miext/damage} \
/netbsd-src/external/mit/xorg/lib/libxcb/damage/
H A DMakefile3 XCBEXT= damage
/netbsd-src/external/mit/xorg/server/xorg-server/miext/
H A DMakefile3 SUBDIR= damage shadow sync # rootless

1234567