Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #005972

  • 0 - None Assigned

  • Fixed

Issue Confirmations

  • Yes (1)No (1)
Photo

"n is meaningless" in docs

Posted by Hercules Bot on 09 June 2012 - 11:36 AM

Originally posted by frenzmu06
in doc/item_bonus
some bonuses state that you cant set variables for "n" but they are functional(description error)

ex.
bonus bNoMagicDamage,n; | n is meaningless)

idk if these scripts has also no functional "n", pls check
bonus bNoWeaponDamage,n;
bonus bRestartFullRecover,n;
bonus bNoSizeFix,n;

Originally posted by Kenpachi
Where is the bug?

Originally posted by frenzmu06
pls. analyze the sentence -> the doc states wrong description

Originally posted by Kenpachi
There's nothing wrong. "n is meaningless" means that you can put every integer value you want.

Originally posted by frenzmu06

"n is meaningless" means that you can put every integer value you want.

but wont take any effect/difference on the bonus output, that's what your saying right?

to think:
bonus bNoMagicDamage,n;
bonus bNoMagicDamage,100; ->100 magic redux
bonus bNoMagicDamage,50;   -> makes 50% magic redux
putting a variable in "n" gives different effect (so is "n" meaningless?)

while
bonus bNoCastCancel,n;
bonus bNoCastCancel,50; ->same effect as putting any #
bonus bNoCastCancel,100; ->same effect as any putting #

Note: this two has a description saying "n is meaningless"
so i'm saying that SOME has non-meaningless "n" which is documented on wrong and giving wrong info about "the specific bonus script"

Originally posted by frenzmu06
already tested most and applies only on

bonus bNoMagicDamage,n;
bonus bNoWeaponDamage,n;

variables on their "n" are not meaningless and applies % reduction depending on the # given

Originally posted by Kenpachi
Okay, now I understand. :)
I think a core dev should check this and update the documentation accordingly.

Originally posted by Kenpachi
Fixed in [rev=16468].

I checked all bonuses with comment "n is meaningless" and those two were the only one with wrong documentation.

Originally posted by Mysterious
So, even doing:

bonus bNoWeaponDamage,50; won't reduce the damage by 5%? Because you just switched it to:  Prevents from receiving n% physical damage (n is meaningless)

Originally posted by Kenpachi
I did not test it but:
case SP_NO_WEAPON_DAMAGE:
  if(sd->state.lr_flag == 2)
   break;
  val+= sd->special_state.no_weapon_damage;
  sd->special_state.no_weapon_damage = cap_value(val,0,100);
  break;
... the value is capped between 0 and 100. So if 50 is passed the damage will be reduced by 50%.

Originally posted by EvilPuncker
you forgot to remove the "n is meaningless comment" in both lines and wtf you changed mmo.h to 20110315 without even saying a word about?

Originally posted by Kenpachi
Damn, sorry it was ~3:00 AM in Germany and I simply was tired and overlooked that. Will be fixed ASAP.

Originally posted by Kenpachi
Fixed in [rev=16474].