You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Common Utilities/Config.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,7 @@ public class Config : IConfig
138
138
};
139
139
140
140
[Description("The list of custom 914 recipies. Original is the item being upgraded, New is the item to upgrade to, and Chance is the percent chance of the upgrade happening. You can specify multiple upgrade choices for the same item. For custom items use the item's name.")]
141
+
// This should be named Scp914ItemChanGes instead of ChanCes (capitalized to show the difference), consider changing at some point (breaking change)
Log.Debug($"{nameof(OnUpgradingPickup)}: SCP-914 is trying to upgrade a {ev.Pickup.Type}. {sourceItem} -> {destinationItem} ({chance}). Should process: {rolledChance<=chance} ({rolledChance})");
41
+
Log.Debug($"{nameof(OnUpgradingPickup)}: SCP-914 is trying to upgrade a {ev.Pickup.Type}. {sourceItem} -> {destinationItem} (x{count}); {rolledChance} <= {chance} ({rolledChance<=chance})");
38
42
39
43
if(rolledChance<=chance)
40
44
{
@@ -66,19 +70,23 @@ public void OnUpgradingPickup(UpgradingPickupEventArgs ev)
Log.Debug($"{nameof(OnUpgradingInventoryItem)}: {ev.Player.Nickname} is attempting to upgrade hit {ev.Item.Type}. {sourceItem} -> {destinationItem} ({chance}). Should process: {rolledChance<=chance} ({rolledChance})");
89
+
Log.Debug($"{nameof(OnUpgradingInventoryItem)}: {ev.Player.Nickname} is attempting to upgrade an inventory item(s) {ev.Item.Type}. {sourceItem} -> {destinationItem} (x{count}); {rolledChance} <= {chance} ({rolledChance<=chance})");
82
90
83
91
if(rolledChance<=chance)
84
92
{
@@ -110,20 +118,20 @@ public void OnUpgradingPlayer(UpgradingPlayerEventArgs ev)
Log.Debug($"{nameof(OnUpgradingPlayer)} : {nameof(config.Scp914EffectChances)}{ev.Player.Nickname} is trying to gain an effect through SCP-914. effect: {effect}; chance: {chance}; rolledChance: {rolledChance};");
196
+
Log.Debug($"{nameof(OnUpgradingPlayer)} : {nameof(config.Scp914EffectChances)}:{ev.Player.Nickname} is trying to gain an effect through SCP-914{effect} ({duration}s); {rolledChance} <= {chance} ({rolledChance<=chance})");
189
197
190
198
if(rolledChance<=chance)
191
199
{
@@ -201,15 +209,15 @@ public void OnUpgradingPlayer(UpgradingPlayerEventArgs ev)
Log.Debug($"{nameof(OnUpgradingPlayer)} : {nameof(config.Scp914TeleportChances)}{ev.Player.Nickname} is trying to be teleported by 914. zone: {zone}; room: {roomType}; offset: {offset}; chance: {chance}; rolledChance: {rolledChance};");
220
+
Log.Debug($"{nameof(OnUpgradingPlayer)} : {nameof(config.Scp914TeleportChances)}:{ev.Player.Nickname} is trying to be teleported by 914. {roomType} + {offset}; {zone} + {ignoredRooms.Count} ignored rooms; damage: {damage}; {rolledChance} <= {chance} ({rolledChance<=chance})");
Log.Debug($"[StartItems] Probability ({rolledChance})/{chance}");
175
+
Log.Debug($"{nameof(GetStartingInventory)} Trying to assign to slot {i+1} for {role}; item: {item}; {rolledChance} <= {chance} ({rolledChance<=chance}).");
171
176
172
177
if(rolledChance<=chance)
173
178
{
@@ -182,18 +187,20 @@ public List<ItemType> GetStartingInventory(RoleTypeId role, Player player = null
182
187
if(player!=null)
183
188
customItem!.Give(player);
184
189
else
185
-
Log.Warn($"{nameof(GetStartingInventory)}: Tried to give {customItem!.Name} to a null player.");
190
+
Log.Warn($"{nameof(GetStartingInventory)} Tried to give {customItem!.Name} to a null player.");
186
191
187
192
break;
188
193
}
189
194
190
-
Log.Warn($"{nameof(GetStartingInventory)}: {item} is not a valid ItemType or CustomItem! It is being skipped in inventory decisions.");
195
+
Log.Warn($"{nameof(GetStartingInventory)} Skipping {item}as it is not a valid ItemType or CustomItem!");
0 commit comments