Thread:TsuchiNoKao/@comment-26544499-20200927173301/@comment-46261745-20201019225040

Hmm, many strange things about Motonari, that's for sure.... I got sidetracked in the all out battle and found some other weird things... sorry for the tangent:

According to the wiki: But when I look into the code (and Ive checked both the MG and Takajun versions), the condition is simply 勢力[ii2].交戦ターン数 > 5, which is a counter that's done in 敵勢力ターン whenever an enemy takes a turn and is in 勢力[ii2].状態 == 2.
 * NB: For the all-out battle, the way that the game checks if the Mouri House and the Oda House are at war is somewhat strange. It seems to care about what provinces are at war with the Mouri House rather than what houses are at war with them. So, for example, if the Mouri House has no way to attack a province which is owned by the Oda House (as opposed to say, owned by one of Oda's unattackable vassals), then it appears that this event will never trigger.

There's nothing there about neighbouring provinces or anything, so I don't think the wiki is correct... Have you looked into this before?

Anyway, that's neither here nor there... back to Motonari.

When he is initially generated, he is level 50, and he's given the solo class for warrior (35) in ＣＨ自動生成.

In Ｓ体力計算 this gives him 8*level + 50 (450) as his starting HP, which should rise to 458 when he hits level 51, which is his cap. (This also happens to be the function where he is given a fixed 1200 HP for the All out battle (◆特定戦闘 == 40?) above. I think he's scripted into that fight specifically, so he's regenerated?)

You can see in Ｐ合戦／戦闘結果 where he gets his +50 HP each time you defeat him. This can be carried over to the player as he is not regenerated when captured (iix = 0 in 捕虜登録).

However, it seems as if this should be reset when he levels from 50 to 51? Would have to confirm, but based on Ｓ体力計算, he should go back to 458 HP after his level up when recruited... That seems silly, if you put all that effort into him to get his HP up, but then you level him up and he gets weaker...

Anyway, when he's Cleared, in ＩＶＣ, there's a little custom function that runs on him 元就変身, among other things, this fixes his HP at 500.

Again, because of Ｓ体力計算 though, if you cleared him at level 50 and then leveled him, it resets his HP to his class base for his level, which is 458.

So everything you described seems consistent.

The half health damage cap is in the ボスダメージ補正 function. I modded that one a bit already in previous versions, but it could probably still use more work.