Theraze
Active member
Hmm... I thought when I went through the code, it calls restoration scripts with the same amount that it tries to heal with itself... so if you're at 10 hp with a target of 25, it should call UR with a target of 25 immediately, not a target of 11 (that UR then needs to ignore and revalue into 25). Is it failing to do that properly?
Edit: I get this impression from invokeRecoveryScript being called with the full 'recover' value in line 161 (and 197, but we haven't brought up MP, so let's continue to ignore it) in RecoveryManager. This is using the same value that recoverHP has been passed, int recover. When we look at RecoverCommand, line 61, we see that it's already passing along Math.max(hpAutoRecoveryTarget*max hp, current hp + 1).
Eh, I must be misunderstanding you, because it sounds like you're saying you scrap the value that mafia passes to you, which wouldn't be intended behaviour... if you wanted to heal to 90% of max and your target is set to 50%, UR would fail to recover that if it were a pure current+1.
Edit: I get this impression from invokeRecoveryScript being called with the full 'recover' value in line 161 (and 197, but we haven't brought up MP, so let's continue to ignore it) in RecoveryManager. This is using the same value that recoverHP has been passed, int recover. When we look at RecoverCommand, line 61, we see that it's already passing along Math.max(hpAutoRecoveryTarget*max hp, current hp + 1).
Eh, I must be misunderstanding you, because it sounds like you're saying you scrap the value that mafia passes to you, which wouldn't be intended behaviour... if you wanted to heal to 90% of max and your target is set to 50%, UR would fail to recover that if it were a pure current+1.
Last edited: