Smartly allow custom models in a unit without messing with the stat qty selection
This commit is contained in:
parent
4de863bda3
commit
604897a01e
1 changed files with 310 additions and 77 deletions
|
|
@ -425,59 +425,6 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"1 quantity per model": {
|
|
||||||
"evals": [
|
|
||||||
{
|
|
||||||
"paths": [
|
|
||||||
[
|
|
||||||
"{self}",
|
|
||||||
"designation"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"operator": "AND",
|
|
||||||
"not": false,
|
|
||||||
"actionable": false,
|
|
||||||
"note": "Checking my name so i know the correct model to find."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"paths": [
|
|
||||||
[
|
|
||||||
"{self}",
|
|
||||||
"stats",
|
|
||||||
"model",
|
|
||||||
"value"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"operator": "AND",
|
|
||||||
"not": false,
|
|
||||||
"actionable": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"failState": "pass",
|
|
||||||
"evaluate": "OR",
|
|
||||||
"order": 11,
|
|
||||||
"actions": [
|
|
||||||
{
|
|
||||||
"paths": [
|
|
||||||
[
|
|
||||||
"{self}",
|
|
||||||
"traits",
|
|
||||||
"item",
|
|
||||||
"{1string}",
|
|
||||||
"quantity"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"actionType": "set",
|
|
||||||
"value": [
|
|
||||||
"{self}",
|
|
||||||
"stats",
|
|
||||||
"{0string}",
|
|
||||||
"value"
|
|
||||||
],
|
|
||||||
"iterations": 1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"adjust power": {
|
"adjust power": {
|
||||||
"evals": [
|
"evals": [
|
||||||
{
|
{
|
||||||
|
|
@ -792,6 +739,294 @@
|
||||||
"iterations": 1
|
"iterations": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"1 quantity per model": {
|
||||||
|
"evals": [
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"designation"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"operator": "AND",
|
||||||
|
"not": false,
|
||||||
|
"actionable": false,
|
||||||
|
"note": "Checking my name so i know the correct statName to look at for qty."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"model",
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"operator": "AND",
|
||||||
|
"not": false,
|
||||||
|
"actionable": false,
|
||||||
|
"note": "Storing the itemKey of the model we want to track"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"assets",
|
||||||
|
"item",
|
||||||
|
"{1string}",
|
||||||
|
"quantity"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"operator": "SUM",
|
||||||
|
"not": false,
|
||||||
|
"actionable": false,
|
||||||
|
"note": "Isolate quantity of modified models",
|
||||||
|
"equation": {
|
||||||
|
"operator": "T-O",
|
||||||
|
"value": [
|
||||||
|
"{self}",
|
||||||
|
"traits",
|
||||||
|
"item",
|
||||||
|
"{1string}",
|
||||||
|
"quantity"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"{0string}",
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"operator": "AND",
|
||||||
|
"not": false,
|
||||||
|
"actionable": false,
|
||||||
|
"note": "Determine new qty of trait",
|
||||||
|
"equation": {
|
||||||
|
"operator": "T-O",
|
||||||
|
"value": [
|
||||||
|
"{self}",
|
||||||
|
"rules",
|
||||||
|
"1 quantity per model",
|
||||||
|
"evals",
|
||||||
|
"2",
|
||||||
|
"result",
|
||||||
|
"integer"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"failState": "pass",
|
||||||
|
"evaluate": "OR",
|
||||||
|
"order": 11,
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"traits",
|
||||||
|
"item",
|
||||||
|
"{1string}",
|
||||||
|
"quantity"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"actionType": "set",
|
||||||
|
"value": [
|
||||||
|
"{self}",
|
||||||
|
"rules",
|
||||||
|
"1 quantity per model",
|
||||||
|
"evals",
|
||||||
|
"3",
|
||||||
|
"result",
|
||||||
|
"integer"
|
||||||
|
],
|
||||||
|
"iterations": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"allowed",
|
||||||
|
"items"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"actionType": "add",
|
||||||
|
"value": [
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"model",
|
||||||
|
"value"
|
||||||
|
],
|
||||||
|
"iterations": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Incorrect number of models.": {
|
||||||
|
"evals": [
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"designation"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"operator": "AND",
|
||||||
|
"not": false,
|
||||||
|
"actionable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"model",
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"operator": "AND",
|
||||||
|
"not": false,
|
||||||
|
"actionable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"assets",
|
||||||
|
"item",
|
||||||
|
"{1string}",
|
||||||
|
"quantity"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"max": [
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"{0string}",
|
||||||
|
"max"
|
||||||
|
],
|
||||||
|
"min": [
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"{0string}",
|
||||||
|
"min"
|
||||||
|
],
|
||||||
|
"operator": "SUM",
|
||||||
|
"not": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"failState": "error",
|
||||||
|
"evaluate": "OR",
|
||||||
|
"order": 12
|
||||||
|
},
|
||||||
|
"automagical tracking bounds": {
|
||||||
|
"evals": [
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"designation"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"operator": "AND",
|
||||||
|
"not": false,
|
||||||
|
"note": "this is currently non-functional pending refactoring of findTargets"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"model",
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"operator": "AND",
|
||||||
|
"not": false,
|
||||||
|
"actionable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"assets",
|
||||||
|
"item",
|
||||||
|
"{1string}",
|
||||||
|
"designation"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"operator": "AND",
|
||||||
|
"not": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"failState": "pass",
|
||||||
|
"evaluate": "OR",
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"{2string}",
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"actionType": "set",
|
||||||
|
"value": 1000,
|
||||||
|
"iterations": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"{2string}",
|
||||||
|
"tracked"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"actionType": "set",
|
||||||
|
"value": true,
|
||||||
|
"iterations": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"{2string}",
|
||||||
|
"min"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"actionType": "set",
|
||||||
|
"value": [
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"{0string}",
|
||||||
|
"min"
|
||||||
|
],
|
||||||
|
"iterations": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
[
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"{2string}",
|
||||||
|
"max"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"actionType": "set",
|
||||||
|
"value": [
|
||||||
|
"{self}",
|
||||||
|
"stats",
|
||||||
|
"{0string}",
|
||||||
|
"max"
|
||||||
|
],
|
||||||
|
"iterations": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"aspects": {
|
"aspects": {
|
||||||
|
|
@ -5672,11 +5907,11 @@
|
||||||
"assets": {
|
"assets": {
|
||||||
"traits": [
|
"traits": [
|
||||||
"Statline§Gargoyle",
|
"Statline§Gargoyle",
|
||||||
|
"Ability§Swarming Masses",
|
||||||
{
|
{
|
||||||
"item": "Model§Gargoyle",
|
"item": "Model§Gargoyle",
|
||||||
"quantity": 10
|
"quantity": 10
|
||||||
},
|
}
|
||||||
"Ability§Swarming Masses"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"designation": "Gargoyles"
|
"designation": "Gargoyles"
|
||||||
|
|
@ -5779,12 +6014,12 @@
|
||||||
"assets": {
|
"assets": {
|
||||||
"traits": [
|
"traits": [
|
||||||
"Statline§Hormagaunt",
|
"Statline§Hormagaunt",
|
||||||
|
"Ability§Swarming Masses",
|
||||||
|
"Ability§Bounding Leap",
|
||||||
{
|
{
|
||||||
"item": "Model§Hormagaunt",
|
"item": "Model§Hormagaunt",
|
||||||
"quantity": 10
|
"quantity": 10
|
||||||
},
|
}
|
||||||
"Ability§Swarming Masses",
|
|
||||||
"Ability§Bounding Leap"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"designation": "Hormagaunts"
|
"designation": "Hormagaunts"
|
||||||
|
|
@ -5878,11 +6113,11 @@
|
||||||
"assets": {
|
"assets": {
|
||||||
"traits": [
|
"traits": [
|
||||||
"Statline§Termagaunt",
|
"Statline§Termagaunt",
|
||||||
|
"Ability§Swarming Masses",
|
||||||
{
|
{
|
||||||
"item": "Model§Termagaunt",
|
"item": "Model§Termagaunt",
|
||||||
"quantity": 10
|
"quantity": 10
|
||||||
},
|
}
|
||||||
"Ability§Swarming Masses"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"designation": "Termagaunts"
|
"designation": "Termagaunts"
|
||||||
|
|
@ -5893,7 +6128,7 @@
|
||||||
"value": 4
|
"value": 4
|
||||||
},
|
},
|
||||||
"model": {
|
"model": {
|
||||||
"value": null
|
"value": "Model§Tyranid Warrior"
|
||||||
},
|
},
|
||||||
"Adrenal glands": {
|
"Adrenal glands": {
|
||||||
"statType": "rank",
|
"statType": "rank",
|
||||||
|
|
@ -5979,16 +6214,6 @@
|
||||||
"statType": "numeric",
|
"statType": "numeric",
|
||||||
"value": 0
|
"value": 0
|
||||||
},
|
},
|
||||||
"Tyranid Warrior": {
|
|
||||||
"statType": "numeric",
|
|
||||||
"label": "Tyranid Warriors",
|
|
||||||
"value": 0,
|
|
||||||
"statOrder": -1,
|
|
||||||
"visibility": "always",
|
|
||||||
"tracked": true,
|
|
||||||
"min": 3,
|
|
||||||
"max": 9
|
|
||||||
},
|
|
||||||
"power1": {
|
"power1": {
|
||||||
"value": 4
|
"value": 4
|
||||||
},
|
},
|
||||||
|
|
@ -5997,6 +6222,18 @@
|
||||||
},
|
},
|
||||||
"poweri": {
|
"poweri": {
|
||||||
"value": 4
|
"value": 4
|
||||||
|
},
|
||||||
|
"Tyranid Warriors": {
|
||||||
|
"statType": "numeric",
|
||||||
|
"increment": {
|
||||||
|
"value": 3
|
||||||
|
},
|
||||||
|
"value": 3,
|
||||||
|
"statOrder": -1,
|
||||||
|
"visibility": "always",
|
||||||
|
"dynamic": true,
|
||||||
|
"min": 3,
|
||||||
|
"max": 9
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keywords": {
|
"keywords": {
|
||||||
|
|
@ -6019,9 +6256,7 @@
|
||||||
"Statline§Tyranid Warrior",
|
"Statline§Tyranid Warrior",
|
||||||
"Ability§Synapse (Aura)",
|
"Ability§Synapse (Aura)",
|
||||||
"Ability§Shadow in the Warp (Aura)",
|
"Ability§Shadow in the Warp (Aura)",
|
||||||
"Ability§Warrior Spawning"
|
"Ability§Warrior Spawning",
|
||||||
],
|
|
||||||
"included": [
|
|
||||||
{
|
{
|
||||||
"item": "Model§Tyranid Warrior",
|
"item": "Model§Tyranid Warrior",
|
||||||
"quantity": 3
|
"quantity": 3
|
||||||
|
|
@ -6029,9 +6264,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"allowed": {
|
"allowed": {
|
||||||
"items": [
|
"items": []
|
||||||
"Model§Tyranid Warrior"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"Only 1 of every 3 can have a Venom cannon.": {
|
"Only 1 of every 3 can have a Venom cannon.": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue