• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Bugfix: enemies in the jungle cannot attack

Aconcagua

Sailor Apprentice
Storm Modder
Walking around in the jungles of the islands, you can encounter enemies, but these are not able to attack.

This can be fixed as follows:

Open the file Program/loc_ai/LAi_monsters.c
There you find a method
<!--coloro:#FFFF00--><span style="color:#FFFF00"><!--/coloro--><!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->bool LAi_MonsterLogin(ref location, string group, string locator)<!--fontc--></span><!--/fontc--><!--colorc--></span><!--/colorc-->
Find the code line containing
<!--coloro:#FFFF00--><span style="color:#FFFF00"><!--/coloro--><!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->LAi_SetHP(chr, hp, hp);<!--fontc--></span><!--/fontc--><!--colorc--></span><!--/colorc-->
(in my file this was line 82). Insert directly after that this instruction:
<!--coloro:#FFFF00--><span style="color:#FFFF00"><!--/coloro--><!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->Lai_CharacterChangeEnergy(chr, 100.0);<!--fontc--></span><!--/fontc--><!--colorc--></span><!--/colorc-->

Now the characters on the islands get their energy full and can attack you.
 
Back
Top