RimWorld

RimWorld

Not enough ratings
Fix Strong Melee Spear AP
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5
File Size
Posted
Updated
418.991 KB
6 Oct, 2024 @ 12:03pm
10 Oct, 2024 @ 9:03pm
4 Change Notes ( view )

Subscribe to download
Fix Strong Melee Spear AP

Description
Background:
In vanilla, the AP of every verb on every melee weapon is 1.5 times the verb damage. Strong melee gene will increase verb damage by 1.5, which increases AP as well. Weak melee damage gene will do the opposite.

This is true for every melee weapon, except the stab attack of the spear, and both the stab and cut attacks of monosword. The AP of these three attacks is only affected by weapon quality. Also, some implants (the knee spike, hand talon, and flesh whip) have non-standard AP. This can be a problem.

https://rimworldwiki.com/wiki/Spear
In the analysis of the spear, it's apparent that with the strong melee damage gene, the spear becomes almost obsolete because it loses its AP advantage against the longsword, which was its only advantage it had, since spear only does stab damage, which is generally worse than longsword's cut.

Mod:
This mod changes the game to ensure Strong Melee gene does affect spear AP. This makes it viable in the mid-to-late game, and justifies using them for aesthetic variety by giving it better strategic value. Weak melee damage gene will also decrease spear stab AP.

I guess the spear x strong melee damage gene interaction is not intentional, but it likely is, since it's been this way for many updates, so this mod is probably not actually a "fix".

This mod will also do the same for monosword, the implants, any other similar weapons from mods.

More specifically, the reason the spear was unaffected by strong melee was because the xml for spear specified its own armorPenetration value (0.5; this can be observed in-game by looking at the AP of a normal quality steel spear). The only thing this mod does is make it so any melee weapon that specified its own armorPenetration value will be affected by damage genes, including monosword, and other modded weapons.

Applies to all enemies. Neanderthal (strong melee) and Impid (weak melee) raids in vanilla usually carry spears.

Tip:
You can see the melee verbs of pawns, but the command is a bit hidden. In the dev mode actions/tools, find "Show more actions", then "T: List Melee Verbs"
14 Comments
艾许 9 Dec, 2024 @ 10:21am 
Humanoid Alien Races
Poob  [author] 5 Dec, 2024 @ 4:25pm 
whats har
艾许 5 Dec, 2024 @ 6:29am 
not working for har
Poob  [author] 10 Oct, 2024 @ 9:06pm 
I've updated the mod, and have tested with the implants you were talking about.

Their AP will now increase from strong melee gene.
Poob  [author] 10 Oct, 2024 @ 6:40pm 
I tested and their AP did not increase. I might try to update the mod so they do
stun 10 Oct, 2024 @ 5:12pm 
I am not talking about a mod wtf is your problem?
Hand talon, knee spike and flesh whip don't follow the AP from damage curve.
Poob  [author] 10 Oct, 2024 @ 9:43am 
don't think any vanilla implants are like that so you're probably talking about a modded implant. I don't know any so I can't test right now. If I could test, I think the mod won't change implant's AP.
stun 10 Oct, 2024 @ 5:07am 
Does this change the melee verbs you get from implants that have fixed AP values that don't scale with MDF?
Poob  [author] 7 Oct, 2024 @ 5:29am 
I think you're right. If you have a gang of slave impids and you give them all spears to mob high armor enemies, it'd be better than giving them all longswords. And the impids carrying spears in raids against you would be even weaker with the mod.

But also, you've selected only longsword. Whats better than giving them spears is giving them guns. Comparing spear and longsword for a weak melee pawn is like two homeless guys competing who's richer when they both have cents. And the danger of impid spearmen even in vanilla are not really most dangerous for their spears but rather they position themselves to spit fire.
OfGreyHairWaifu 7 Oct, 2024 @ 5:03am 
But a longsword will still half both the damage AND the AP.
Meaning that the spear will at least be able to somewhat reliably deliver the low damage it will have on a weak melee pawn.