We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e08dd38 + 524b4b8 commit 592faeeCopy full SHA for 592faee
1 file changed
Source/RIMAPI/RimworldRestApi/Helpers/BillHelper.cs
@@ -46,7 +46,11 @@ public static BillDto ToDto(Bill_Production bill)
46
IngredientSearchRadius = bill.ingredientSearchRadius,
47
AllowedSkillRange = new IntRangeDto(bill.allowedSkillRange.min, bill.allowedSkillRange.max),
48
PawnRestrictionId = bill.PawnRestriction?.thingIDNumber,
49
+#if RIMWORLD_1_5
50
+ PlayerCustomName = "Not supported",
51
+#elif RIMWORLD_1_6
52
PlayerCustomName = bill.RenamableLabel,
53
+#endif
54
SlotGroupId = null,
55
AllowedMaterials = bill.ingredientFilter?.AllowedThingDefs?.Select(d => d.defName).ToList() ?? new List<string>(),
56
AvailableMaterials = bill.recipe.fixedIngredientFilter?.AllowedThingDefs?.Select(d => d.defName).ToList() ?? new List<string>(),
0 commit comments