[Posting] Re: Rob Failed
From:streu
Thread:Rob Failed
Forum:Bugs
In reply to:Re: Rob Failed
Date:Mon, 2020-06-29 19:15 GMT

Hi James T. Plagerism,

your analysis is pretty much to the point: PHost decides once that the mission will fail ("oh crap, I cannot get the engine to start. I'm back in my bunk."), not for each found victim ship ("oops, we cannot get through their shields; let's try the next victim").

This means you'll always rob all or nothing.

It has always been this way in PHost. It started getting visible when I added some messages to tell you why nothing happened. But it can be proven even without messages: given a universe with 20 groups of 1 Privateer MCBR and 24 Fed MDSF each, we'll get a result like this (number of ships robbed per group):

 24  0  0  0  0 24  0  0 24 24 24  0 24 24 24 24  0 24 24 24

Interestingly, Tim-Host uses the other interpretation and rolls a die for each encountered victim. The same test case looks like this in THost 3.22.40:

  8  8  9 13 13 14 10 14 13 13 14 15 12 14 14  9  9 11 12  9

I tend to consider Tim's behaviour more logical here, especially given that RobCloakedChance works the same way (tested for each victim) also in PHost. Any other opinions on that matter? Then I might even change it :smile:

--Stefan

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.