Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specify idrs log is in the log file #387

Merged
merged 1 commit into from
Apr 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions R2API/ItemAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ internal static bool AddInternal(CustomItem item, Assembly addingAssembly) {
if(item.ItemDisplayRules.HasInvalidDisplays(out var log)) {
R2API.Logger.LogWarning($"Some of the ItemDisplayRules in the dictionary for CustomItem ({item.ItemDef}) have an invalid {nameof(ItemDisplayRule.followerPrefab)}. " +
$"(There are ItemDisplayRuleType.ParentedPrefab rules)," +
$"Logging invalid rules...");
$"Logging invalid rules... (For full details, check the Log file)");
R2API.Logger.LogDebug(log.ToString());
}
}
Expand Down Expand Up @@ -160,7 +160,7 @@ internal static bool AddInternal(CustomEquipment equip, Assembly addingAssembly)
if (equip.ItemDisplayRules.HasInvalidDisplays(out var log)) {
R2API.Logger.LogWarning($"Some of the ItemDisplayRules in the dictionary for CustomEquipment ({equip.EquipmentDef}) have an invalid {nameof(ItemDisplayRule.followerPrefab)}. " +
$"(There are ItemDisplayRuleType.ParentedPrefab rules)," +
$"Logging invalid rules...");
$"Logging invalid rules... (For full details, check the Log file)");
R2API.Logger.LogDebug(log.ToString());
}
}
Expand Down Expand Up @@ -528,7 +528,7 @@ internal bool HasInvalidDisplays(out StringBuilder logger) {
continue;

if (!rule.followerPrefab) {
logger.AppendLine($"invalid follower prefab for entry {bodyName}. The follower prefab of entry N{i} is null. (The ItemDisplayRule.ruleType is ItemDisplayRuleType.ParentedPrefab)");
logger.AppendLine($"invalid follower prefab for entry {bodyName}. The follower prefab of entry N°{i} is null. (The ItemDisplayRule.ruleType is ItemDisplayRuleType.ParentedPrefab)");
invalidDisplays = true;
continue;
}
Expand Down