Remove Blacksmith upgrades from siege weapons

Siege weapons do not benefit from Blacksmith upgrades.  Also, this
commit splits the attack and defense ranges from Blacksmith upgrades
into two attributes, which makes it easier to see what is happening to
get the final range of attack-vs-defense upgrade values.
This commit is contained in:
Nate Bowman
2026-11-14 21:38:42 -05:00
parent 3fcbf0d0af
commit 67c9fc1696
3 changed files with 93 additions and 25 deletions

View File

@@ -3,19 +3,37 @@ from fighting.types import ArmorClasses
ranges = {ArmorClasses.MELEE: {
'standard': range(-3, 5),
'parthian tactics (armor)': range(-3, 5),
'villager': range(0, 5),
'villager (loom)': range(-1, 4),
'attack': {
'standard': range(0, 5),
'villager': [0],
'siege (chemistry)': range(0, 2),
'siege': [0],
},
'armor': {
'standard': range(-3, 1),
'parthian tactics': range(-4, 1),
'villager': [0],
'villager (loom)': [-1],
'siege': [0],
},
},
ArmorClasses.PIERCE: {
'standard': range(-4, 5),
'parthian tactics (armor)': range(-6, 5),
'parthian tactics (attack)': range(-4, 7),
'gambesons': range(-5, 5),
'villager': range(0, 5),
'villager (loom)': range(-2, 4),
}
'attack': {
'standard': range(0, 5),
'parthian tactics': range(0, 7),
'villager': [0],
'siege (chemistry)': range(0, 2),
'siege': [0],
},
'armor': {
'standard': range(-4, 1),
'parthian tactics': range(-6, 1),
'gambesons': range(-5, 1),
'villager': [0],
'villager (loom)': [-2],
'siege': [0],
},
},
}
@@ -139,3 +157,31 @@ bonuses = {
},
}
bonuses['armor']['Parthian Tactics'] = bonuses['attack']['Parthian Tactics']['attackers']
siege = [
'Battering Ram',
'Capped Ram',
'Siege Ram',
'Mangonel',
'Onager',
'Siege Onager',
'Rocket Cart',
'Heavy Rocket Cart',
'Scorpion',
'Heavy Scorpion',
#'Siege Tower',
'Bombard Cannon',
'Trebuchet (packed)',
'Trebuchet (unpacked)',
'Traction Trebuchet',
]
siege_no_chemistry = [
'Battering Ram',
'Capped Ram',
'Siege Ram',
'Bombard Cannon',
'Trebuchet (packed)',
'Trebuchet (unpacked)',
'Traction Trebuchet',
]
siege_with_chemistry = list(set(siege) - set(siege_no_chemistry))