Jump to content

Average addon hit


Recommended Posts

Hey guys. I wanted to change average bonus hit in items with addon_type = 1.

In item_addon.cpp i found:

int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);

Which probably say about -30, 30 range about skill damage bonus.

So now - I tried to change rigidly normal hit bonus.

int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);
int iNormalHitBonus = MINMAX(-20, (int) (gauss_random(0, 5) + 0.5f), 80);

Sometimes when I try to change attributes, i lost my average bonuses. Have you got any solutions?

For example I wanted to do:

-30, 30 range for skill bonus,

-20, 80 range for normal hit bonus.

 

Best regards.

 

@edit 23.08.2014 19:50

I guess problem solved. It was because of drawn "0". When you drawn 0 then your attributes change to another.

Link to comment
Share on other sites

  • 1 year later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hey guys. I wanted to change average bonus hit in items with addon_type = 1.

In item_addon.cpp i found:

int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);

Which probably say about -30, 30 range about skill damage bonus.

So now - I tried to change rigidly normal hit bonus.

int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);
int iNormalHitBonus = MINMAX(-20, (int) (gauss_random(0, 5) + 0.5f), 80);

Sometimes when I try to change attributes, i lost my average bonuses. Have you got any solutions?

For example I wanted to do:

-30, 30 range for skill bonus,

-20, 80 range for normal hit bonus.

 

Best regards.

 

@edit 23.08.2014 19:50

I guess problem solved. It was because of drawn "0". When you drawn 0 then your attributes change to another.

Can you explain drawn "0" ?
Or anybody give an example setting.what is the logic ? Pls explain
.

Edited by dreammaker
No answer back
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 11

      Multi Language System

    2. 0

      [FREE DESIGN] Interface + Logo + Discord Banner and Avatar

    3. 4

      Feeding game source to LLM

    4. 0

      Quest 6/7 Problem

    5. 5

      Effect weapons

    6. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

    7. 3

      Crystal Metinstone

    8. 4

      Feeding game source to LLM

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.