Open slinkymanbyday opened 1 year ago
In addition to this, the Threats generator probably needs some updating for double action/double threat missions too.
I've got these settings in my build and will hopefuly be play testing them soon.
private const val minInternalThreats = 2
private const val maxInternalThreats = 5
private const val maxInternalThreatsNumber = 3 // number of internal threats max
/**
* minimum and maximum time in which normal threats can occur
*/
private const val minTNormalExternalThreat = 1
private const val maxTNormalExternalThreat = 8
/**
* minimum and maximum time in which serious threats can occur
*/
private const val minTSeriousExternalThreat = 2
private const val maxTSeriousExternalThreat = 8
/**
* minimum and maximum time in which normal threats can occur
*/
private const val minTNormalInternalThreat = 2
private const val maxTNormalInternalThreat = 8
/**
* minimum and maximum time in which serious threats can occur
*/
private const val minTSeriousInternalThreat = 3
private const val maxTSeriousInternalThreat = 7
I have been working on this, ended up refactoring a lot of code to make double threats work a bit nicer. Still working on data transfer code, I'll pop up a PR when I'm done
raised a PR #55
thanks for your support!
Would this affect the Java code, too? If yes, I can have a look into the "core" library which is still based on Java.
Would this affect the Java code, too? If yes, I can have a look into the "core" library which is still based on Java.
Yes he is touching the "core" files, maybe someday we can make a common lib but got too much going on personally right now
Would this affect the Java code, too? If yes, I can have a look into the "core" library which is still based on Java.
Yeah. My PR does two main things.
@slinkymanbyday I am not sure if you saw my tests from this https://github.com/nibuen/SpaceAlertMissionGenerator/issues/50 just FYI and that is why I have not since been able to release the build yet as there have been some generation problems around double threats as well.
Hard for me to tell if that is what you are addressing or not honestly, but I would recommend looking at my fuzzy tests and look at expanding them for coverage and we can go from there.
@slinkymanbyday sorry been a while, but finally have some free time. Would this still be worth integrating? I have changed a number of files but after reviewing your code closer I think I get the idea of the fitting differences, still i don't have new frontiers though so not really sure exactly how to evaluate it correctly...
@mkalus too for your consideration on the update
With double action missions, the standard constructed missions have between 1 and 3 data transfers per phase (appears to be irrespective of which phase). And a minimum of 4 data transfers in a mission (although this only happens once in the constructed missions, normally min of 5)
Current implementation appears to follow below:
Can this be changed for double actions, maybe use same checkbox for double threats? or have the ability to set this via settings like you do for incoming data?
I haven't done much Android coding, but happy to give it a crack at some point.