Difference between revisions of "Talk:Curse items"

From NetHackWiki
Jump to navigation Jump to search
m (UnNetHack)
m (UnNetHack)
 
Line 16: Line 16:
 
</pre>
 
</pre>
  
Based on this, it doesn't look like it will recurse - since right now only rndcurse() knows what to do if it hits a container. However, recursion in that situation is the desired behavior. I'll talk to the other devs - it is probably a quick fix.
+
It will recurse - the above code is within curse_objects() so when it is called on the contents of a bag, this check is run again on the contents.  
 +
 
  
 
--[[User:Ozymandias|Ozymandias]] ([[User talk:Ozymandias|talk]]) 16:04, 29 August 2013 (UTC)
 
--[[User:Ozymandias|Ozymandias]] ([[User talk:Ozymandias|talk]]) 16:04, 29 August 2013 (UTC)

Latest revision as of 16:10, 29 August 2013

Is the curse items spell (as cast by, say, arch-lich), ranged or touch? If ranged is it some sort of ray or can you be hit regardless of where you stand (as in, can you be hit from a knight's jump away)? I only ask because I've tried to avoid pyrolisk glares by keeping a knight's jump away but it still burned up my cloak (I was fast and its speed is only 6) so that get me thinking that maybe some monster attacks aren't "select direction," but rather "select target." But I may not have kept the right distance the entire time so maybe I'm wrong on that. DemonDoll 17:49, 15 June 2009 (UTC)

"touch", just as melee. Gaze attacks are really an odd exception in Nethack as they do no even adher to the cardinal directions restriction. -Tjr 20:23, 15 June 2009 (UTC)

UnNetHack

In UnNetHack, if Curse Items targets an already cursed container,
one random item inside the bag is cursed instead.

If the random item is a cursed container does it recurse? --194.116.198.185 11:36, 29 August 2013 (UTC)

else if (otmp->cursed) {
		if (Is_container(otmp))
		    curse_objects(otmp->cobj, 1, FALSE);
		continue;
	    }

It will recurse - the above code is within curse_objects() so when it is called on the contents of a bag, this check is run again on the contents.


--Ozymandias (talk) 16:04, 29 August 2013 (UTC)