// TODO: Alpha 14 // Think about whether or not this is the best approach. Might need to do a bug report for the vanilla game? // The tribal scenario adds a weapon with an invalid thing/stuff combination (jade knife). The // knife ThingDef should allow the jade material, but it does not. We need this workaround to // add the normally disallowed equipment to our equipment database. protected EquipmentDatabaseEntry AddNonStandardScenarioEquipmentEntry(EquipmentKey key) { int type = equipmentDatabase.ClassifyThingDef(key.thingDef); return(equipmentDatabase.AddThingDefWithStuff(key.thingDef, key.stuffDef, type)); }
// TODO: // Think about whether or not this is the best approach. Might need to do a bug report for the vanilla game? // The tribal scenario adds a weapon with an invalid thing/stuff combination (jade knife). The // knife ThingDef should allow the jade material, but it does not. We need this workaround to // add the normally disallowed equipment to our equipment database. protected EquipmentRecord AddNonStandardScenarioEquipmentEntry(EquipmentKey key) { EquipmentType type = equipmentDatabase.ClassifyThingDef(key.ThingDef); return(equipmentDatabase.AddThingDefWithStuff(key.ThingDef, key.StuffDef, type)); }