Randarmour enchantment


Ask fellow adventurers how to stay alive in the deep, dark, dangerous dungeon below, or share your own accumulated wisdom.

User avatar

Dis Charger

Posts: 1949

Joined: Monday, 18th February 2013, 07:59

Location: France

Post Thursday, 11th December 2014, 20:21

Randarmour enchantment

I'm looking for the values of the best/worst randart armour enchantment...

I've been looking here, but didn't find/understand what I searched.

Edit : related question, are some of those enchantments limitated to God gifts (ie : boots can be enchanted from -4 to +3, but Oka gives -5 to +4)

Any help ? Thx
Online stats
Fastest Hell runes (enter Hell branch -> get the rune)
Icy : 56 / Iron : 126 / Obsidian : 215 / Bone : 125

Dungeon Master

Posts: 634

Joined: Sunday, 22nd September 2013, 14:46

Post Monday, 15th December 2014, 01:41

Re: Randarmour enchantment

The code is actually here*

  Code:
int max_plus = armour_max_enchant(item);
item.plus = random2(max_plus + 1);
if (one_chance_in(5))
    item.plus += random2(max_plus + 6) / 2;
if (one_chance_in(6))
    item.plus -= random2(max_plus + 6);

armour_max_enchant is is 14 for CPA, so it can be as high as (random2(15) + random2(20)/2 = 14 + 19/2 = 14 + 9 =) 23, or as low as (random2(15) - random2(20) = 0 - 19 =) -19. The odds of these enchantments are left as an exercise to the reader.
AFAICT being a god gift doesn't matter.

*I greatly prefer github's interface to gitorious's, even though gitorious is the actual official repository.

For this message the author wheals has received thanks: 2
Arrhythmia, mopl

Return to Dungeon Crawling Advice

Who is online

Users browsing this forum: No registered users and 23 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.