What is the highest enchantment a randarte can generate?


If it doesn't fit anywhere else, it belongs here. Also, come here if you just need to get hammered.

User avatar

Tartarus Sorceror

Posts: 1891

Joined: Monday, 1st April 2013, 04:41

Location: Toronto, Canada

Post Wednesday, 27th July 2016, 04:19

What is the highest enchantment a randarte can generate?

????
take it easy

Dungeon Master

Posts: 625

Joined: Thursday, 23rd October 2014, 03:08

Post Wednesday, 27th July 2016, 04:48

Re: What is the highest enchantment a randarte can generate?

I think cpa can generate with +23?
User avatar

Tartarus Sorceror

Posts: 1891

Joined: Monday, 1st April 2013, 04:41

Location: Toronto, Canada

Post Wednesday, 27th July 2016, 04:57

Re: What is the highest enchantment a randarte can generate?

CanOfWorms wrote:I think cpa can generate with +23?


What about aux armours?
take it easy
User avatar

Slime Squisher

Posts: 338

Joined: Wednesday, 20th November 2013, 11:37

Post Wednesday, 27th July 2016, 05:57

Re: What is the highest enchantment a randarte can generate?

Arrhythmia wrote:
CanOfWorms wrote:I think cpa can generate with +23?


What about aux armours?

Please be patient, I'd check source files in 1-2 hours (if answer won't appear before).

Okay, I got it:
  Code:
int max_plus = armour_max_enchant(item);
item.plus = random2(max_plus + 1);   //(1)
if (one_chance_in(5))
item.plus += random2(max_plus + 6) / 2; //(2)

On aux armour you have armour_max_enchant = 2, then in the line (1) you may get it and have (2 + 6 - 1) / 2 = 3 added in the line (2), thus you get +5.
You can calculate [1.5*(armour_max_enchant) + 2.5] (where [x] is x rounded down) for any type of armour, this yields +23 for CPA, +20 for GDA and so on.

For this message the author ololoev has received thanks: 2
4Hooves2Appendages, Arrhythmia

Return to Crazy Yiuf's Corner

Who is online

Users browsing this forum: No registered users and 5 guests

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