Polypiling is the action of polymorphing a pile of items in hopes of getting some useful items as a result. Objects polypiled are often referred to as polyfodder. The polyfodder often consists of junk. Polymorph comes in book, wand, and potion forms.
When considering polypiling it is important to distinguish stacks of items, which are all of one type, e.g. "4 blessed scrolls of blank paper", from piles of items, which are all of the items on one square. The terms stack and pile will be used rigorously on this page.
The spell and wand supply a beam with a random range between 6 and 13 (long enough to hit 3 to 7 piles if they are all in line and contiguous and you are adjacent to the first) so you can work on several piles at once. The potion works on one item stack at a time, the item stack you dip into it.
Polymorphed items do not change item class. Potions will always yield potions, scrolls will yield scrolls, etc. Unicorn horns are especially popular polyfodder because they may polymorph into other magical tools for instance magic markers. Another useful thing to do if you gain polymorph in the early game is to polypile spellbooks. Polymorphing retains the charges and enchantment of polymorphed items.
Polypiling has its drawbacks. Polyfodder may be destroyed, and hostile golems may be generated. See the next section for more details, the exact mechanics of item destruction are rather complex, but understanding them is important if you want to get the most out of your resources.
When polymorphing wands and spellbooks, their quality degrades. A spellbook will act as if it had been read once more. If the book's combined read/polymorph-count is four or more and it is a spell you already know, you will be told that the book is too faint to read anymore; if you do not know the spell, you can read it once to learn the spell but it will become "too faint" immediately thereafter. When a spellbook becomes blank due to overuse, it becomes a used-up blank spellbook, not an unused blank spellbook. The only way to "cure" spellbooks too faint to be read anymore is to write a new spell on them with a magic marker.
Likewise, a wand may count as if it had been recharged, increasing the chance of an explosion if you attempt to recharge it; thus, it is not generally worthwhile to polypile empty wands, even if they become something worth charging, the chances of the new wand exploding instead of charging are already higher than normal. The chance of a wand's charge counter being incremented by polymorphing it is max(0,(6-x)/7) where x is the number of times the wand has been recharged
Polypiling items that belong to a shopkeeper can anger the shopkeeper.
Polymorphing a crocodile corpse will yield a pair of non-cursed fireproof +0 low boots.
- 1 Probability of item loss and golem generation for wand and spell
- 2 Probability of item transformation
- 3 Forbidden items
- 4 Strategy
- 5 Stacking strategies
- 6 SLASH'EM
- 7 Code
- 8 References
- 9 External links
Probability of item loss and golem generation for wand and spell
First, each item stack in the pile has a chance of resisting. For normal items, it's 5%. See below for details.
- For stacks of less than 5 items:
- Blessed non-wand: 1/12
- Uncursed non-wand: 1/8
- Wand of any BUC or stack of any cursed items: 1/3
- For stacks of 5 items or more:
- Blessed: 1/6
- Uncursed: 1/4
- Cursed: 1
When a stack shudders, it loses 1d(items in stack - 1) items, except in the case of single items, which are always destroyed.
For each item stack in the pile that undergoes a system shock, there is a chance of a golem being created. For each item in a shuddering stack (counting those items destroyed by the shock itself) there is a 1/(luck + 45) probability of creating a golem. No more than one golem can be created per pile. However, even after NetHack has decided to create a golem, additional stacks in the pile can shudder. A 1/(luck + 45) chance for each item in the stack gives a (1 - ((luck + 44)/(luck + 45))^(stack size)) chance of a golem forming from that stack.
If an item stack shuddered, even if some of the items that were in the stack remain, it will NOT be polymorphed. The rest of the stacks in the pile still have a chance of being polymorphed.
For any stack that did not shudder, the polymorph process continues. There is a (number of items in stack/1000) probability that the entire stack merges into a single item.
The actual polymorph is now performed. See the next section for exactly what your item stack will be turning into.
This process is repeated for each item stack in the pile.
If a golem is created from ANY stack in a pile, then that golem can absorb material (read: destroy) additional item stacks in the pile. Note that the material absorbed (destroyed) by the golem is SEPARATE from that destroyed by the original system shock(s). If, after every stack has been polymorphed, zero or one item remains in the pile (due perhaps to bad system shocks), golem creation is aborted, if it had been planned at all. According to a comment in the source "no golems if you zap only one object -- not enough stuff", though note that the comment isn't entirely accurate. It's possible to zap several items, reach this point in the code, and have the material check fail because all or all but one of the items were destroyed by system shocks.
The golem will attempt to absorb a number of individual items (not item stacks, "4 scrolls" counts for 4, not 1), equal to its weight. Only items that are made of the same material as the item stack whose shuddering cause the golem to form are eligible for absorption. E.g., if a mithril coat shudders and results in an iron golem, that iron golem will absorb other mithril items on the pile, but leave iron items untouched. Each eligible item stack has a 1 in (golem weight + 1) chance of escaping absorption. Note that, given the high weights of golems, 400 for straw and paper up to 2000 for iron, it is highly unlikely that ANY eligible item will survive this process. Also note that this absorption occurs after the items have been polymorphed. If a mithril item shudders, creating an iron golem, and several other mithril objects on the pile are polymorphed into other materials, e.g. leather coats or iron helmets, they will NOT be absorbed, though any leather coats or iron helmets polymorphed into mithril items WILL be absorbed. 
Since each stack in a pile is polymorphed separately, from the most recently dropped item out to the item dropped longest ago, and the type of golem is determined by the material of the first item stack to shudder and result in golem creation. This is exploitable: see below. 
This process, from the start of this section of the page, is repeated for each pile hit by the beam.
The invocation artifacts and the Amulet of Yendor cannot shudder, polymorph, or be absorbed by forming golems. Normal artifacts have a 95% chance of resisting. (Compare to 5% for normal items.) If this 95% chance fails, they are polymorphed just like every other item, first undergoing a shuddering check and then, if they aren't destroyed, undergoing a polymorph to a random non-artifact weapon. Normal artifacts, however, have NO resistance to being absorbed by a forming golem. Excalibur may be mostly safe from shuddering or polymorphing atop that pile of iron junk, but if an iron golem forms it is virtually guaranteed that Excalibur will be absorbed (destroyed).
In other words, there are 3 ways polyfodder can be destroyed:
- Shuddering, the probability of which is decreased by blessing, polymorphing items other than wands, and keep the size of individual stacks under 4.
- Merging, the probability of which is reduced by lowering the size of individual stacks.
- Absorption into forming golems, the probability of which is reduced by:
- Increasing your luck, reducing the chance of golem formation.
- Reducing the size of the individual item stacks, reducing the chance of golem formation.
- Reducing the number of item stacks on the pile, reducing the number of opportunities for golems to form.
- Limiting the number of items on the pile that are made of the same material, reducing the number of items a forming golem can absorb.
- In particular, the items on the top of the pile, the ones you drop last, should be a different material than the most valuable items in the pile. Potential golems will likely be made out of the material of the top items, not the material of the valuable items. Thus the valuable items will survive while the cheaper ones are destroyed. See below for details.
Probability of item transformation
When polymorphing a magical object, the game will try to change it into another random magical object, re-trying up to two times if the replacement would be non-magical. The third item generated will be used, regardless if it is magical. The reverse is true when polymorphing a non-magical object. The upshot is that a magical object has a significantly higher probability than a non-magical object of turning into another magical object. So don't expect many magic markers from polypiling pick-axes and mirrors; you will have much better odds polypiling unicorn horns. The exceptions are potions of water, blank scrolls, blank spellbooks, and wands of nothing, all of which have a high chance of becoming more-useful items of the same type. As mentioned above, blessed items have only a 1/12 chance of undergoing system shock, so blessing your polypile items is definitely worth the expenditure if you have a surplus of holy water.
|Class||Magical -> Non-magical||Non-magical -> Magical|
The following items cannot be produced by polymorph:
- magic lamp
- wand of wishing
- wand of polymorph
- potion of polymorph
- spellbook of polymorph
- any item not normally randomly generated, such as athames and fedoras
Additionally, Rider corpses and wands, potions and spellbooks of polymorph cannot be polymorphed. Artifacts have a 95% chance of resisting, but may be polymorphed into normal items. Stacks of more than four valuable gems will never be created. Invocation artifacts and the Amulet of Yendor cannot be polymorphed at all, nor can they be absorbed into forming golems or shuddered.
Polypiling is most often used by conduct players who need certain items: It can substitute for wishing, prayer/sacrifice benefits, or literacy, and it can be done relatively safely. Generated monsters offer an almost unlimited supply of polyfodder. However, polypiling is time-consuming and tedious. Generally, it is not worth it unless you are trying for conducts, or unless you are looking for many items at once.
Over preparing is the other common reason for polypiling. This goes for many first ascenders, pacifist characters who want the most protection, or even an attempt to get an absurdly high score by polypiling rocks into gems.
- Never handle both polyfodder and items you want to keep in your main inventory at the same time, and never ever drop anything useful on your polypile line. People have wondered where their bag of holding with all the artifacts went.
- Even if you do not care about polyfodder loss, #name rocks to get stacks of at most four. There is a limit to how many gems can be created.
- Max out your Luck to minimize golem creation. That reduces the total material lost. This is particular useful for larger stacks and piles, where any golem will do comparatively more damage. Do not max your luck if using the one large pile strategy below.
- Configure autopickup exceptions to pick up good morphs and your want-to-keeps from the pile.
- Polypile your items near a general store to help identify good morphs. Be very careful of polypiling in a store: the shopkeeper will attack you if any of his/her items are polymorphed, not just ask you to pay for the item.
- Familiarize yourself with the ways polyfodder is lost to determine how much risk to take on, given your available polyfodder and the amount of polypile sources you have available to you. Your patience is also a factor, perfect optimization is time consuming and tedious.
- To minimize loss, it is a good idea to mass-bless magical polyfodder, which is much less abundant than ordinary junk. Potions and scrolls can be cancelled so they will stack, and then dipped in holy water. Name and separate them into stacks of at most four items before polymorphing. Only armor and weapons (and wands) retain their enchantment; these should be cancelled if negative before blessing. A large stack of darts can be enchanted to +7 in one go and then polypiled individually for silver weapons or the future Excalibur etc as side benefit. Magical armor and tools tend to become non-magical rather than shuddering, so there is no point blessing them.
- Non-stackables, such as rings, require more work to bless. Often, it is not worth the costs. The most efficient way is with a blessed, confused scroll of remove curse: In a safe location, pick up as much polyfodder as possible but carry no other uncursed items. Then confuse yourself, read a blessed scroll of remove curse, end confusion, and mass-uncurse cursed items via the spell of remove curse at a skilled level. The light blue aura boon when carefully praying on an altar or even another scroll can also uncurse your entire main inventory. This procedure yields 12.5 blessings per scroll on average.
- Unless you will need only one read, name spellbooks individually how often you have read them, and sort them accordingly. Under each pile you intend to polymorph, engrave that number. Any nameless books after the polymorph will count as read one more time. Keep in mind how often you will have to re-read the spells you get.
- Sort polyfodder by BUC status so you won't have to re-test after polypiling.
When to Polypile
- If a game has been unforgiving, a good time to consider polypiling is when there are many things needed at once: the odds of getting at least one of them is improved. For example, if you're looking for a magic marker in particular, getting a tinning kit would be seen as a waste. However, if you were looking for both a magic marker and a tinning kit, the effective odds of getting something you want go up. If you're looking for a horn of plenty, a magic marker, a pair of lenses, and a tinning kit all at once, polypiling unicorn horns begins to look increasingly attractive.
- Potions are attractive to polymorph, due to the ease of creating fruit juice and water, and mass blessing them. Furthermore, with the help of alchemy, a good third of the available potions are useful in some way. While you may not get the potion of enlightenment, or gain level, that you wanted, you are likely to end with various healing potions, levitation, etc, that can be quickly used to work towards what you really want.
- Scrolls are commonly polymorphed for similar reasons. Here, part of the motivation is in doing away with magic markers. It adds a great deal of randomness to the mix, but scrolls are still cheaper than marker charges.
- Magical tools. Unicorn horns are a common fodder, due to the large number of useful magical tools, and the abundance of unicorn horns. (For farmers: revived unicorns have a 5% chance of leaving another horn.) Certainly, the magic marker is generally what most would go for, but in the attempt you might find other goodies: A horn of plenty, which spawns potion you can polypile. A fire/frost horn may also be of help, as may a magic harp or magic flute. This is especially helpful to Tourists or neutral players with the PYEC.
- Magical armor. This mostly to finish off an ascension kit, and most often using the various abundant elven equipment as fodder. This is mostly only useful to (wishless) conduct players, as the castle's guaranteed five wishes are good enough to get all the missing types of armor; furthermore, its armor stores might contain missing pieces.
Confidence Base Chance 25% 50% 75% 95% Polymorphs 1 in 100 28.62 68.97 137.94 298.07 Shuddering 1 in 12 3.31 7.97 15.93 34.43 Armors needed (est.) — 3.59 8.66 17.32 37.41
- Rings. This mostly to finish off an ascension kit, and namely, to get a ring of levitation, slow digestion, or even free action if for some reason the RNG wasn't benevolent enough to give the player one. But usually you find those even before the Medusa level. Most other rings are only useful in specific situations, polypiling or not.
- One cheesy trick is to polypile for rings of protection or increase damage, with the intention of eating them. It's possible to get a ridiculously low AC or ridiculously high damage. The former is pointless, other than to sound impressive, because you can reasonably get to -40AC without such mind-numbing busywork, and that is enough to make even a minotaur barely scrape the polish on your armor. The latter may be for Death farming to a ludicrously high score.
- Spellbooks, if you are happy with any random book and accept you cannot re-read it. Early in the game, when you don't know many spells yet, you can get dozens of new ones out of a few spellbooks. Due to a bug in NetHack, a book will never be "too faint to be read anymore" if that adds a spell to your repository. This has proven popular among speed runners. Newbies might carry books and rings along (unencumbered) into a Minetown shop in the early game and polymorph there.
- A large pile of junk armor. Shirts are annoyingly rare in the main dungeon, but other armors are not. Zapping a wand of polymorph at that 15 pages pile of items in Fort Ludios is probably the easiest way to get a shirt outside of wishing or playing a Tourist.
- When can also be considered "in the temporal sense." By the time you reach Vlad's Tower, you can take a little break, lock the door and begin the process in peace and quiet, after having accumulated a backbreaking load of loot. One nice benefit is that you can also use that place to summon wraiths that will leave a corpse to eat, unlike the rest of Gehennom, should your efforts yield magic markers for writing genocide on any cursed blank scrolls with the help of the guaranteed water walking boots you find there.
When Not to Polypile
- Wands are generally not worth it. This is mostly because by the time the player has a serious stash of wands, and abundant means to polymorph objects (read: the spell), there is only one wand seriously worth going after: death. But this late into the game, there are only four monsters that it matters on—Pestilence, Famine, Rodney, and the High priest of Moloch. Likely (but not necessarily), you already have enough wands of death to deal with those enemies. Also, polymorphed wands will more likely explode if charged again.
- In the midgame, however, it may be worth it. If the player doesn't quite have enough items to make a full polypile line, a square of scrap wands may not make anything that you need, but it might make a wand you've yet to identify (if it has charges left). It may also be that you need a wand's special properties—for example, a wand of fire's ability to engrave a permanent Elbereth square.
- Specific Spellbooks. If you only need one specific spellbook (or a book of polymorph to start with), there are better methods than polypiling: Wizards with sufficient Luck can write one using a magic marker. Anyone willing to do the altar work can get books from their god, especially the last few ones you do not yet know. For spells you do know, polypiling is terrible, as it takes only a few rounds of polymorph to make even previously unread books "too faint to read".
- There are better ways to get various other items. For example, a trident, while normally quite rare, can be found in the death drop of a salamander or a horned devil. A silver saber, very desirable for twoweapon combat, can be found in the inventory of the Minetown watch, or the various captains that show up in the Castle.
- Items not generated randomly aren't available from polypiling, e.g. athames.
Seven small piles
Step by Step
- Maximize your luck. (+13 is best.)
- Collect your items. See the section above to decide what to polypile.
- Individually name stackables to separate them. Separating them all the way into stacks of just one single item is best, but just getting them into stacks of four or fewer is almost as good. Completely unstack weapons and tools.
- Distribute the item stacks over seven small piles in a straight line, each pile containing a good mix of different types of material. Put the items you want polymorphed most at the front of the line. (First three piles are guaranteed, each of the four piles after that is progressively less likely.)
- Zap polymorph.
- Review results. Autopickup exceptions can automate this for you.
Separating your stackables minimizes the chances of merging and shuddering. Weapons and tools will eventually turn into something unstackable, and you lose all but one.
Maximizing your luck minimizes the chances of golems forming.
Distributing your item stacks over 7 squares minimizes the damage a forming golem can do, because a golem can only absorb items from the square it forms on.
Ensuring a good mix of different materials also minimizes the damage a forming golem can do, because the golem can only absorb items that are made of the same material as the shuddered item that led to its formation.
One large pile
Step by step
- Minimize your luck. (0 is good, -13 is better!)
- Collect your items. See the section above to decide what to polypile, but avoid items made of mineral (e.g. some rings, wands). The number of wands and rings destroyed by this method will be slightly greater than the number destroyed by the seven small piles method. If you are polypiling in order to get a mineral based item, do NOT use this method.
- Individually name stackables to separate them, especially weapons and tools. Separating them all the way into stacks of just one single item is best, but just getting them into stacks of four or fewer is almost as good.
- Put every item stack in one large pile.
- Obtain a very large number of rocks.
- Curse the rocks.
- Individually name the rocks to break them into small stacks. Five rocks per stack is best, get as close to that as your patience allows. Do not make stacks smaller than five.
- Drop all the rocks on top of the item pile. MAKE SURE YOU DROP THE ROCKS AFTER THE ITEMS SO THEY ARE ON TOP.
- Zap polymorph.
- Kill the stone golem.
- Review results.
You WANT a stone golem to form from those rocks, because it will prevent other types of golems from forming and damaging your valuable polyfodder. Assuming cursed rocks in stacks of 5, and Luck of 10: 50 rocks is approximately a 58% chance of a stone golem, 200 rocks is approximately a 97% chance of a stone golem, and 300 rocks is approximately a 99.5% chance of a stone golem.
This method exploits the specifics of the polypiling algorithm.
Separating your stackables minimizes the chances of merging and shuddering. The only threat to deal with now is golem absorption.
Ordinarily putting every item stack on one pile would be a terrible idea, because any forming golem would have access to every item you were polypiling. However, in this strategy we ensure that the golem won't be able to absorb anything useful, by manipulating the material it is made of. A golem can only absorb items made of the same material it is. An iron golem generated from shuddering mithril can only absorb other mithril items. A wood golem generated from shuddering wood can only absorb other wood items. And--most importantly in this case--a stone golem generated from a shuddering mineral item can only absorb other mineral items.
Only one golem can be generated from a pile, and the first item stack to shudder and lead to golem formation gets to decide the material. By putting the rocks on top we ensure that they get processed first.
Cursing the rocks increases the chances that they will shudder.
Keeping the rocks in stacks of more than 4 (5 in this case) also increases this chance.
Minimizing our luck increases the chances that our rocks will give rise to a golem once they shudder.
The probability of an individual stack NOT giving rise to a golem, IF it shudders, is (1 - 1/(Luck+45) )^stack_size. The probability of the stack shuddering (and not resisting initial polymorph) is 95% for stacks of 5 or more cursed items, this is the highest chance we can get. Thus the probability of a stack NOT forming a golem is 0.05 + 0.95 * (1 - (1 - 1/(Luck+45) )^stack_size. If every stack of rocks in a pile is identical (all contain 5 cursed rocks), then the chance of none of them giving rise to a golem is (0.05 + 0.95 * (1 - (1 - 1/(Luck+45) )^stack_size)^number_of_stacks. Thus we want our stacks to be as small as possible, so that we can have as many as possible, WITHOUT having less than 5 rocks per stack.
For the most part, there are no items made from mineral you might be interested in polypiling for. The exceptions are marble wands and granite, opal, clay, coral, moonstone and black onyx rings. The material an item is made of can change when it is polymorphed, and it is the final material that matters for golem absorption. Since any polymorphed wand or ring could end up being one of the mineral ones, the effect is that this technique will consume slighty more wands and rings than the other technique, and that the specific item types that are made of mineral cannot be polypiled for (with this method).
There is a 5% chance of a normal item resisting polymorph and reaching this point unchanged, so the initial material matters somewhat as well. For instance if you try to polypile a figurine and it resists, it is almost guaranteed to be absorbed (because figurines are mineral).
Beware! In the unlikely event that a stone golem does NOT form from the rocks: then, given the large pile underneath, there is a good chance a golem WILL form from another material, possibly doing a lot of damage. With enough cursed rocks, less material is lost on average with the one-pile than with the multi-pile technique.
One large pile with meatballs
If you know stone to flesh spell, you should cast it at your rocks to turn them into meatballs , then use them instead of rocks in the advice above. In this case, you can polypile for mineral items, but can't polypile for eggs and tripe rations. The golem rising from the pile will be a flesh golem instead of a stone golem.
In SLASH'EM, polymorphed items revert back to their original form after 500–999 turns . The in-game term for this, which can only be seen in wizard mode, is "hazy." Hazy items, however, can be "fixed" by dipping them in a potion of restore ability.
There are some exceptions to this:
- Items that were initially eggs laid by the player or corpses do not revert.
- If a magic lamp is randomly chosen at first, the oil lamp with which it is replaced does not revert.
- Items that become land mines or beartraps do not revert.
- Items that become the same object type as they were before do not revert, even if they otherwise changed (such as a diluted potion of sickness becoming an undiluted potion of sickness).
The reversion is done not by restoring the original item but by changing the item to the original item's type, which has some consequences that may not be expected, including the following:
- Some properties, such as beatitude and erosion, are carried over from the transformed item rather than the original.
- Some other properties, such as being an artifact, are lost.
- A stack of multiple items that became a single item reverts to a single item of the original type.
- An item that became an amulet of unchanging does not revert.
The transmutation limits the usefulness of polypiling somewhat, as obtaining permanent items requires a commensurate supply of potions. However, polypiling is still just as useful to obtain items that can be useful right away or relatively soon; for example, a polypiled magic marker can be immediately used to write a few scrolls, and then allowed to transmute back after it is empty.
In some cases, the reversion can be useful:
- When polypiling magical items, if they turn into non-magical items, one can simply wait for them to revert, and try again.
- Boulders can be polymorphed into statues and transported more easily, and will turn back into boulders.
- Some further consequences are probably bugs:
- After polymorphing a boulder into a statue, breaking it will result in a number of rocks; if they are separated, each separate stack reverts to a boulder.
- Weapons can be polymorphed into dwarvish mattocks, upgraded to pick-axes, and polymorphed further into other tools, particularly charged ones; when they revert, the weapon's enchantment will be the tool's number of charges, which can be much higher than normally feasible.
bhito in zap.c is the root of item polymorphs from the spell and from the wand. It is called for each stack of items a polymorph zap hits by bhitpile. First it refuses to polymorph polymorph-sources, and allows items to resist . It calls obj_shudders to check for system shocks  and calls do_osshock to perform them. Finally bhito calls polyobj to actually transform the stack. .
do_osshock determines whether or not to generate a golem, and after all the stacks in the pile have been polymorphed by repeated calls to bhito, bhitpile calls create_polymon to actually generate the golem.
- zap.c in NetHack 3.4.3, line 1333: recharge count < rn2(7) to see if polymorph increments charge counter on wands.
- zap.c in NetHack 3.4.3, line 1353
- zap.c in NetHack 3.4.3, line 2744: bhit calls bhitpile for each square/pile
- zap.c in NetHack 3.4.3, line 1733: bhitpile goes through each stack separately, calling bhito--to which a function pointer has been passed in as fhito--to perform the actual polymorph
- zap.c in NetHack 3.4.3, line 1515: bhito calls obj_shudders on just one object, and obj_shudders does not inspect other items on the square, i.e. in the pile
- obj_shudders in zap.c (obj_shudders determines whether a given stack will shudder.)
- zap.c in NetHack 3.4.3, line 1162: do_osshock decides whether or not it should make a golem
- zap.c in NetHack 3.4.3, line 1160: poly_zapped is a file level static variable, visible to every function in zap.c, -1 means no golem created yet, else it contains the material of the item whose shuddering resulted in golem creation. do_osshock checks that its -1 before trying to make a golem.
- zap.c in NetHack 3.4.3, line 1519: if the obj shuddered, bhito exits WITHOUT polymorphing the object.
- splitobj in mkobj.c (If any items remained after the shuddering occurred, they will have been reinserted in the item tracking linked list, but they will have been inserted before the deleted ones, and bhitpile will not return to them.)
- zap.c in NetHack 3.4.3, line 1735: bhitpile decides the next object before bhito has a chance to call do_osshock and destroy/split item stacks.
- zap.c in NetHack 3.4.3, line 1521: poly_obj is called AFTER do_osshock has finished with the stack.
- zap.c in NetHack 3.4.3, line 1312: poly_obj decides whether or not to merge the items in the stack
- zap.c in NetHack 3.4.3, line 1076: golem creation aborted for not enough items
- zap.c in NetHack 3.4.3, line 1140: mons[pm_index] is a permonst structure, defined in permonst.h, the cwt field is the weight of the monsters corpse, which is defined for golems even though they leave no corpses.
- zap.c in NetHack 3.4.3, line 1035: polyuse doesn't stop absorbing items until minwt is 0, minwt is initialized to golem corpse weight
- zap.c in NetHack 3.4.3, line 1054: not that polyuse is subtracting the QUANTITY of objects from minwt, not the WEIGHT of those objects. iron golems will absorb up to 2000 iron items
- zap.c in NetHack 3.4.3, line 1043: which items are eligible for absorption; note that "mat" is the material of the shuddered item stack NOT of the golem created
- zap.c in NetHack 3.4.3, line 1160: once NetHack decides to create a golem it records the shuddering stack's material and stops trying to create golems for additional stacks.
- zap.c in NetHack 3.4.3, line 1733: bhitpile goes through objects forwards through the list
- mkobj.c in NetHack 3.4.3, line 1115: place_object adds dropped objects to the front of the list, where bhitpile will encounter them first.
- zap.c in NetHack 3.4.3, line 1038: resistance check only serves to protect the invocation items and the amulet
- Zap.c in NetHack 3.4.3, line 1215
- zap.c in NetHack 3.4.3, line 1319: no magic lamps
- zap.c in NetHack 3.4.3, line 1329: no wands of wishing or polymorph
- zap.c in NetHack 3.4.3, line 1338: no potions of polymorph
- zap.c in NetHack 3.4.3, line 1343: no spellbooks of polymorph
- zap.c in NetHack 3.4.3, line 1225: mksobj is called with "artif" set to false -- no artis
- timeout.c in SLASH'EM 0.0.7E7F2, line 455
- zap.c in SLASH'EM 0.0.7E7F2, line 1443
- zap.c in SLASH'EM 0.0.7E7F2, line 1489
- zap.c in SLASH'EM 0.0.7E7F2, line 1518
- zap.c in SLASH'EM 0.0.7E7F2, line 1526
- timeout.c in SLASH'EM 0.0.7E7F2, line 453
- timeout.c in SLASH'EM 0.0.7E7F2, line 480
- zap.c in SLASH'EM 0.0.7E7F2, line 1374
- zap.c in NetHack 3.4.3, line 1503: bhito does a resistance check for each item
- zap.c in NetHack 3.4.3, line 1515: bhito checks for system shocks
- zap.c in NetHack 3.4.3, line 1518: bhito performs a system shock
- zap.c in NetHack 3.4.3, line 1521: bhito calls polyobj
- zap.c in NetHack 3.4.3, line 1140: create_polymon calls polyuse