Phantasy 2018 series v150 PATCH P9 for existing v150 series installs
contains important fixes for tournaments, special weapons, direct fire spell handling, item prices, barbarian rage.
re-organized barbarian rage so that normal weapons hits can enrage them. Briefly only magic hits were causing rage for B7 in v155 and b5-b7 in v156.
adjusted the second trigger handling hits from magic weapons, wizard staves, and spell intermediates to not pass through normal weapons damage which should have been dodged; now normal weapons no longer hit twice for identical damage, but behave as originally intended.
3) slight increase in cost of gnome crafted multi-pulley bow, as it might be item cheat purchased instead of made by Berembert.
4) Entering towns no longer needs 3 tries. Between the issue corrected as item 1 and what was found for this item 4, I can account for the 3 tries needed. For this second problem one of the mechanisms to stop town menu from looping and locking people inside town needed removing, and I'll have to see if more people get stuck in town or not now...
Tested item #4 for most of Tue afternoon, it looks like my fixes are working, no triple clicks needed, and still have prejudice etc working. I think I can move on to something else for tomorrow.
5) Did find why special swords (vorpal, flame brand, holy avenger, Vampiric blade, frost brand) did not fire their scripts when intended.
validated special swords and direct fire spells working correctly.
6) Corrected tournament dodge in 3 places:
a) script_get_dodge_chance2 at module trees2_scripts incorrectly referenced balrog_sword as a boundary for melee weapons but that moved,
so the new boundary should have been set as "itm_riverboat_paddle". But also, this script needed to be more aware of arena weapons for TPE
b) next, in mission_triggers tournament_triggers needed 2 fixes:
dodge itself was not aware of arena weapons, so these could do no damage, whether or not dodge worked, as the trigger needs to pass through damage on a failed dodge but never reaches that point for arena weapons
dodge recovery normally has a 2 second trigger going off as part of the special mount attacks 2 second check, but this never gets called during arena missions so once dodge is used it would have been stuck at 5 seconds to go before dodge is fully use able, making dodge a 1 time only. Added a 2 second timer to count down dodge timer for all arena agents now.
use during each arena round (as each round starts a fresh tournament mission)
c) the reason the standard dodge is not used is to bypass ironflesh, stealth, and barbarian rage. Instead, tournament dodge is an unnamed trigger within the set of triggers called only for tournaments now. It does have a handler for unarmed combat. Although v150 does not have TPE, it turns out this layer overlaps native tournaments and can be ported to all 3 series: v156, v155, and v150. Right now this prototyping only on a v158 build, as proofs of concept.
d) tournaments did not have the correct deathcam keybinds activated so this was done as well to allow you to move the camera when you are knocked out. The camera does not move around the stadium but it can turn your head to look left and right, which before did not occur.
e)rebuilt initialization for tournaments to make sure all the agent fields are correctly filled out; dodge was not being linked in. Actually all of the standard tournament re-coding was being skipped, so linked the correct triggers to the two TPE missions defined. The order in which triggers are linked makes a difference; after some changes tournaments now work as they should have several patches ago.
7) back-ported the above changes to v150, which has a different tournament than the v155/156 series so needed some adjustments.
cleaned up error messages in v150 tournaments coming from 3 missing parameters for "script_set_items_for_tournament" at game_menus
issued just before entering tournaments.
adjusted item pricing for v150 to be in line with v156 pricing, both to limit exploits via Rigale crafting and to have 4-ways inn prices reflecting market price.