Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
• 0

# Average addon hit

## Question

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.

• Answers 1
• Created
• Last Reply

## Recommended Posts

• 0

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

!-->

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account

## Sign in

Already have an account? Sign in here.

Sign In Now

1. 1

2. 992

3. 66

4. 3

5. 3

6. 63

7. 58

8. 4

9. 0

• ### 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.