Project 1999

Project 1999 (/forums/index.php)
-   Blue Server Chat (/forums/forumdisplay.php?f=17)
-   -   Calculating Max Mana (/forums/showthread.php?t=316801)

SewingMachine 02-06-2019 12:04 PM

Calculating Max Mana
 
I found the calculation for max mana. Anyone care or just me?

d3r14k 02-06-2019 12:07 PM

If you post what you're referring to, you may get a more active discussion?

SewingMachine 02-06-2019 12:40 PM

If this is true . . . ((( WisInt - 199 ) / 2) > 0)

Then set MindLesserFactor = ( WisInt - 199 ) / 2

If this is false . . . ((( WisInt - 199 ) / 2) > 0)

Then set MindLesserFactor = 0



MindFactor = WisInt - MindLesserFactor



If this is true . . . (WisInt > 100)

Then Max Mana is . . . = (((5 * (MindFactor + 20)) / 2) * 3 * (Your Current Level) / 40)

If this is false . . . (WisInt > 100)

Then Max Mana is . . . = (((5 * (MindFactor + 200)) / 2) * 3 * (Your Current Level) / 100)



After You have calculated your Max Mana then add in all your items that give you +Mana. This will give you your mana.

Notes: WisInt is equal to your Intelligence or Wisdom depending on what kind of caster you are.



Example: I am a 23 Necro with 123 Int and i get 135+ mana from items.

123 - 199 / 2 = -38

-38 is not greater then zero so we set MindLesserFactor to 0

MindFactor = 123

123 is larger then 100 so I am going to use this formula (((5 * (MindFactor + 20)) / 2) * 3 * (Your Current Level) / 40)

(((5 * (123+ 20)) / 2) * 3 * (23) / 40) = 616

Then we add my Manafrom my items which is 135

So 751 is my Max Mana

SewingMachine 02-06-2019 12:40 PM

I tested this on 2 char seems accurate.

loramin 02-06-2019 12:44 PM

If you want to add your calculation to the wiki (possibly after soliciting feedback from others) the two most appropriate pages I can think of are:

http://wiki.project1999.com/Statistics#Secondary_Stats (mana is listed there as a "secondary stat")

http://wiki.project1999.com/Game_Mec...Q_Magic_System (the game mechanics page is where a whole lot of formulas/calculations are listed).

Rygar 02-06-2019 01:42 PM

Whatever mana formula you are using, it will be wrong based on how things should be on P99 (and hopefully will be eventually):
https://www.project1999.com/forums/s...d.php?t=284177

Quizlop 02-06-2019 01:45 PM

Quote:

Originally Posted by Rygar (Post 2855462)
Whatever mana formula you are using, it will be wrong based on how things should be on P99 (and hopefully will be eventually):
https://www.project1999.com/forums/s...d.php?t=284177

Still waiting for weapon swing fatigue.

SewingMachine 02-06-2019 02:10 PM

Quote:

Originally Posted by Rygar (Post 2855462)
Whatever mana formula you are using, it will be wrong based on how things should be on P99 (and hopefully will be eventually):
https://www.project1999.com/forums/s...d.php?t=284177

What you linked was for Cap mana no calculating your current max mana pool. Yes, I dont have access to the p99 code, but I do have access to what it was based off. I tested this with 2 of my characters and it was accurate. Maybe I am not understanding what you are trying to communicate to me.

Rygar 02-06-2019 02:15 PM

There is code listed showing what the base mana formula should be, including diminished 201+ wis/int returns. Includes what max theoretical mana should be.

SewingMachine 02-06-2019 02:27 PM

Quote:

Originally Posted by Rygar (Post 2855495)
There is code listed showing what the base mana formula should be, including diminished 201+ wis/int returns. Includes what max theoretical mana should be.

I am not saying what it should be. I am saying what it is.


All times are GMT -4. The time now is 12:11 PM.

Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.