Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > King's Bounty > King`s Bounty: Warriors of the North

King`s Bounty: Warriors of the North Next game in the award-winning King’s Bounty series

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2012, 06:40 AM
ftww ftww is offline
Registered Member
 
Join Date: Nov 2012
Posts: 1
Default Pygmy hitpoint fix?

With regard to this bug:
Quote:
Pygmy reduces to 1 HP: Build 6249. Pygmy reduces the health of enemy stacks to 1 HP per unit instead of -20%/-30%/-40% of their max health.
Does the following look like the right fix? In spells.lua, line 2446:
Code:
Attack.act_apply_par_spell( "health", -bhealth*penalty, 0, 0, -100, false)
Change to:
Code:
Attack.act_apply_par_spell( "health", -bhealth*penalty/100, 0, 0, -100, false)
Reply With Quote
  #2  
Old 11-30-2012, 03:30 AM
ckdamascus ckdamascus is offline
Approved Member
 
Join Date: Mar 2010
Posts: 1,059
Default

Quote:
Originally Posted by ftww View Post
With regard to this bug:


Does the following look like the right fix? In spells.lua, line 2446:
Code:
Attack.act_apply_par_spell( "health", -bhealth*penalty, 0, 0, -100, false)
Change to:
Code:
Attack.act_apply_par_spell( "health", -bhealth*penalty/100, 0, 0, -100, false)
Yes, this looks like it works!!!

Thanks! I'm going to try to figure out avenging angel now... haha!

I think I found the problem with avenging angel, but it almost seems like it was intentional. Was it a buff to avenging angel then? Unfortunately, the Favorite of the Gods thing is tied to Avenging Angel.

I can revert it back to the old behavior hmmm.

Doesn't look like I can fix Demon Rage Ball or Evil Book since they seem to call functions outside of the .lua files? How does that work? Also, Shroud / aka Oil Mist aka Greasy Mist looks heavily re-worked with different parameters going in. So it is probably changed too heavily for me to safely adjust. Just going for the low hanging fruit now!


CODE FIX for AVENGING ANGEL and FAVORITE OF THE GODS
In spells.lua, line 745:
Code:
  elseif minmax == 0 then
    Attack.act_posthitslave(receiver, "post_spell_slave_angel_avenger", 0)
  end
  return 1,1--damage, addrage
end
Code:
  elseif minmax == 0 then
    Attack.act_posthitslave(receiver, "post_spell_slave_angel_avenger", 0)
  end
  return damage, addrage
end

Last edited by ckdamascus; 11-30-2012 at 02:16 PM. Reason: corrected for addrage
Reply With Quote
  #3  
Old 11-30-2012, 01:35 PM
Nirual Nirual is offline
Approved Member
 
Join Date: Nov 2012
Posts: 170
Default

Quote:
Originally Posted by ckdamascus View Post
Yes, this looks like it works!!!

Thanks! I'm going to try to figure out avenging angel now... haha!

I think I found the problem with avenging angel, but it almost seems like it was intentional. Was it a buff to avenging angel then? Unfortunately, the Favorite of the Gods thing is tied to Avenging Angel.
I really don't think AA needed a buff. And if Beloved by the Gods is affected by the same change, it seems to be calculated separately since troops can take 1 dmg without the damage return and vice-versa.

Also, your code fix seems to also disable rage gain from the avenging angel, ( addrage), which I don't think is part of the problem.
Reply With Quote
  #4  
Old 11-30-2012, 01:42 PM
ckdamascus ckdamascus is offline
Approved Member
 
Join Date: Mar 2010
Posts: 1,059
Default

Quote:
Originally Posted by Nirual View Post
I really don't think AA needed a buff. And if Beloved by the Gods is affected by the same change, it seems to be calculated separately since troops can take 1 dmg without the damage return and vice-versa.

Also, your code fix seems to also disable rage gain from the avenging angel, ( addrage), which I don't think is part of the problem.
Maybe just try damage, addrage.
What boggles me beyond belief is, that code was there but commented out.

1,1, -- damage, addrage.

I suppose maybe just revert it to that instead? Last minute debug stuck in there?
Reply With Quote
  #5  
Old 12-01-2012, 11:15 AM
Mickelangello Mickelangello is offline
Registered Member
 
Join Date: Nov 2012
Posts: 1
Default

Do you have any idea what to do if i have non-steam version? There are no .lua files...
Reply With Quote
  #6  
Old 12-01-2012, 11:25 AM
ckdamascus ckdamascus is offline
Approved Member
 
Join Date: Mar 2010
Posts: 1,059
Default

Quote:
Originally Posted by Mickelangello View Post
Do you have any idea what to do if i have non-steam version? There are no .lua files...
Steam/non-steam, same thing. What happens is in the sessions/addon folder there is a ses.kfs file. That's really just a renamed zip file. I'd make a backup of that file, rename to .zip, exact all files.

Furthermore, if you just drop a .lua file in sessions/addon it OVERRIDES whatever is in the ses.kfs file.

So just exact, modified .lua, copy .lua there.

Be careful, if there is ever an official patch, you have to remove the old .lua file since the .lua file overrides whatever is in the official ses.kfs.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.