diff -Naur nethack-3.4.3/src/uhitm.c changes/nethack-3.4.3/src/uhitm.c --- nethack-3.4.3/src/uhitm.c 2003-12-07 18:39:13.000000000 -0500 +++ changes/nethack-3.4.3/src/uhitm.c 2006-05-05 20:09:28.619363208 -0400 @@ -3,6 +3,7 @@ /* NetHack may be freely redistributed. See license for details. */ #include "hack.h" +#include "monsym.h" STATIC_DCL boolean FDECL(known_hitum, (struct monst *,int *,struct attack *)); STATIC_DCL void FDECL(steal_it, (struct monst *, struct attack *)); @@ -520,6 +521,8 @@ boolean hittxt = FALSE, destroyed = FALSE, already_killed = FALSE; boolean get_dmg_bonus = TRUE; boolean ispoisoned = FALSE, needpoismsg = FALSE, poiskilled = FALSE; + /* Giants are instant-killed with sling + stone */ + boolean giantkill = FALSE; boolean silvermsg = FALSE, silverobj = FALSE; boolean valid_weapon_attack = FALSE; boolean unarmed = !uwep && !uarm && !uarms; @@ -892,7 +895,13 @@ /* If you throw using a propellor, you don't get a strength * bonus but you do get an increase-damage bonus. */ - if(!thrown || !obj || !uwep || !ammo_and_launcher(obj, uwep)) + /* Dragontamer's Patch: sling now gives strength bonus + * when you are throwing with a sling. As far as I know, + * throwable weapons (knives and darts) recieve this bonus + * already, and throwing arrows without a bow gives this + * bonus already. So the assumption that all items with + * sling _will_ give damage bonus. */ + if(!thrown || !obj || !uwep || !ammo_and_launcher(obj, uwep) || uslinging()) tmp += dbon(); } @@ -907,6 +916,14 @@ use_skill(wtype, 1); } + /* Instant kill giants with sling and stones if skilled or above */ + if ( uslinging() && ammo_and_launcher(obj, uwep) + && P_SKILL(wtype) >= P_SKILLED + && mdat->mlet == S_GIANT) + { + giantkill = TRUE; + } + if (ispoisoned) { int nopoison = (10 - (obj->owt/10)); if(nopoison < 2) nopoison = 2; @@ -1042,6 +1059,13 @@ whom = strcat(s_suffix(whom), " flesh"); pline(fmt, whom); } + if(giantkill) + { + You("smite %s on the forehead.", mon_nam(mon)); + if(!already_killed) { + xkilled(mon, 1); + } + } if (needpoismsg) pline_The("poison doesn't seem to affect %s.", mon_nam(mon));