CombatExtendedRWMod / CombatExtended

Combat Extended mod for RimWorld
129 stars 91 forks source link

Gun Charge Blaster Vanilla Mech Weapon no Melee Damage Value Error #1220

Open Nyamses opened 4 years ago

Nyamses commented 4 years ago

Reviving issue #1177 , which I can consistently replicate on a fresh install with only CE 1.1 loaded.

Whenever I try to look at the infocard/information window of the Heavy Charge Blaster, I get the following repeating error on the log:

Trying to get stat MeleeDamageAverage from Gun_ChargeBlasterHeavy which has no support for Combat Extended.

However, I managed to fix it by changing the following in Patches\Core\ThingsDefs_Misc\Weapons_Guns.xml (lines 1151 and 1152) :

`

Defs/ThingDef[defName="Gun_ChargeBlasterHeavy"]` to ` Defs/ThingDef[@Name="Gun_ChargeBlasterHeavyBase"]/tools` I can now look at the information of the Heavy Charge Blaster without the error popping up and it displays the correct melee DPS, etc.