bulk pass on threat levels
This commit is contained in:
1 parent
41241c230e
commit
3a1ab9c799
168 files changed
+225
-682
No files matched your search
+14
-14
@@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 44,
|
||||
"id": "2cc54913",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -24,7 +24,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"execution_count": 45,
|
||||
"id": "48125b87",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@@ -200,7 +200,7 @@
|
||||
" 'units\\\\WDBANDITCP\\\\WDBANDITCP_unit.bp']"
|
||||
]
|
||||
},
|
||||
"execution_count": 8,
|
||||
"execution_count": 45,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@@ -214,7 +214,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"execution_count": 46,
|
||||
"id": "7974de88",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@@ -224,7 +224,7 @@
|
||||
"{'Destroyed': 125,\n",
|
||||
" 'DoneBeingBuilt': 49,\n",
|
||||
" 'UISelection': 167,\n",
|
||||
" 'Fire': 407,\n",
|
||||
" 'Fire': 409,\n",
|
||||
" 'Construct': 27,\n",
|
||||
" 'ConstructLoop': 27,\n",
|
||||
" 'DeathExplosion': 34,\n",
|
||||
@@ -256,7 +256,7 @@
|
||||
" 'MuzzleChargeStart': 1}"
|
||||
]
|
||||
},
|
||||
"execution_count": 9,
|
||||
"execution_count": 46,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@@ -285,7 +285,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 47,
|
||||
"id": "f75cfb51",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -303,7 +303,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 51,
|
||||
"id": "23145ae9",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -329,7 +329,7 @@
|
||||
" else:\n",
|
||||
" blueprint['Defense']['AirThreatLevel'] = hit_points / 1000\n",
|
||||
" if not is_air_threat and 'AirThreatLevel' in blueprint['Defense']:\n",
|
||||
" blueprint['Defense'].remove('AirThreatLevel')\n",
|
||||
" blueprint['Defense'].pop('AirThreatLevel')\n",
|
||||
"\n",
|
||||
" # economy threat\n",
|
||||
" is_economy_threat = 'STRUCTURE' in blueprint['Categories']\n",
|
||||
@@ -341,7 +341,7 @@
|
||||
" else:\n",
|
||||
" blueprint['Defense']['EconomyThreatLevel'] = hit_points / 1000\n",
|
||||
" if not is_economy_threat and 'EconomyThreatLevel' in blueprint['Defense']:\n",
|
||||
" blueprint['Defense'].remove('EconomyThreatLevel')\n",
|
||||
" blueprint['Defense'].pop('EconomyThreatLevel')\n",
|
||||
"\n",
|
||||
" # sub threat\n",
|
||||
" is_sub_threat = 'NAVAL' in blueprint['Categories'] or 'ANTINAVY' in blueprint['Categories']\n",
|
||||
@@ -353,10 +353,10 @@
|
||||
" else:\n",
|
||||
" blueprint['Defense']['SubThreatLevel'] = hit_points / 1000\n",
|
||||
" if not is_sub_threat and 'SubThreatLevel' in blueprint['Defense']:\n",
|
||||
" blueprint['Defense'].remove('SubThreatLevel')\n",
|
||||
" blueprint['Defense'].pop('SubThreatLevel')\n",
|
||||
"\n",
|
||||
" # surface threat\n",
|
||||
" is_surface_threat = 'LAND' in blueprint['Categories']\n",
|
||||
" is_surface_threat = 'LAND' in blueprint['Categories'] or 'DEFENSE' in blueprint['Categories']\n",
|
||||
" if is_surface_threat:\n",
|
||||
" if battle_value != 0:\n",
|
||||
" blueprint['Defense']['SurfaceThreatLevel'] = battle_value / 10\n",
|
||||
@@ -365,7 +365,7 @@
|
||||
" else:\n",
|
||||
" blueprint['Defense']['SurfaceThreatLevel'] = hit_points / 1000\n",
|
||||
" if not is_surface_threat and 'SurfaceThreatLevel' in blueprint['Defense']:\n",
|
||||
" blueprint['Defense'].remove('SurfaceThreatLevel')\n",
|
||||
" blueprint['Defense'].pop('SurfaceThreatLevel')\n",
|
||||
"\n",
|
||||
" # health\n",
|
||||
" blueprint['Defense']['Health'] = hit_points * damage_mult\n",
|
||||
@@ -1129,7 +1129,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 40,
|
||||
"execution_count": 52,
|
||||
"id": "f545b050",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
|
||||
Reference in new issue
Block a user