Iceciro
Recruit

I'm working on something here, and I'm having a little trouble (its not clear to me just what the system is doing!)
What precisely is this bit of code, and the "convert_to_fixed_point" bit in particular, doing to the 2500 that would be the minimum? Even if it converts the 2500 to 25 it should result in 5 renown being the minimum per battle, but that clearly isn't the case. It's part of # script_calculate_renown_value in Module_Scripts
I'm trying to edge the Renown calculations to be more based on the str of the enemy you fight, rather than the difference in power (thus allowing players to still earn renown at a decent rate without forcing them to lead companion armies against small groups of looters to 'farm' it.) but before I make any changes to the existing code I need to know precisely what it's doing!
What precisely is this bit of code, and the "convert_to_fixed_point" bit in particular, doing to the 2500 that would be the minimum? Even if it converts the 2500 to 25 it should result in 5 renown being the minimum per battle, but that clearly isn't the case. It's part of # script_calculate_renown_value in Module_Scripts
插入代码块:
(val_min, "$battle_renown_value", 2500),
(convert_to_fixed_point, "$battle_renown_value"),
(store_sqrt, "$battle_renown_value", "$battle_renown_value"),
(convert_from_fixed_point, "$battle_renown_value"),
(assign, reg8, "$battle_renown_value"),
(display_message, "@Renown value for this battle is {reg8}.",0xFFFFFFFF),
I'm trying to edge the Renown calculations to be more based on the str of the enemy you fight, rather than the difference in power (thus allowing players to still earn renown at a decent rate without forcing them to lead companion armies against small groups of looters to 'farm' it.) but before I make any changes to the existing code I need to know precisely what it's doing!

