mps wrote:Yeah, I think I mentioned this in a previous thread -- armor with -Tele is crazy unless you're a formicid (in which case you're already crazy). Or worship Lugonu, maybe?
related question: Is the artifact generation algorithm reasonably explainable beyond a pointer to source code?
I took a look. Basically, it goes like this:
1: The item to be artefacted is passed in.
2: The quality of the resulting item (enchantment level, good properties) is rolled between 1 and 7.
3: The number of bad properties is rolled - up to 2 bad properties, with a higher likelihood of bad properties on an artefact marked as "good".
4: The number of good properties is generated, based on the quality + number of bad properties.
5: "Excessive" properties are turned into improvements to other properties, so that the chance of getting more than 4 good properties on an item is reduced.
6: If it's a weapon, add a brand.
7: The properties are randomly generated, until the correct number of good / bad properties are attached.
7a: The type of property is rolled. (resist, stat bonus, etc)
7b: Veto certain properties based on the item type or the game type (no -tele on jewellery because it's trivial, no rpois or sinv on naga barding because they already have both innately, no -tele in sprint because sprint has innate -tele, etc)
7c: Decide whether or not to generate a good or bad property.
7d: If the property can be good or bad, roll for goodness (rF+ vs rf-)
7e: Remove the property from the list of rollable properties.
That's the whole thing.