Talk:Charisma
Jump to navigation
Jump to search
Ultima I Formula[edit]
My notes:
long __cdecl16near FUN_1000_680c(int param_1) { undefined2 unaff_DS; return (long)(*(int *)0x3a96 / 4) * (long)param_1; } // (Charisma / 4) int __cdecl16near FUN_1000_63d4(int param_1) { undefined2 unaff_DS; return ((*(int *)0x3a96 + 0x28) * param_1 * param_1) / 0x100 + 1; } // = (40 + charisma) / 256
The formulas look a little odd for what they're used for. 0x3a96 is the pointer for charisma, but it's currently a bit hard to follow exactly how it's applied. --45.72.210.104 17:49, 16 December 2023 (MST)