mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
BUG: Fix InventoryCraft()
overriding member numbers/names if they are already set
This commit is contained in:
parent
17b7767a9e
commit
c40a362746
1 changed files with 3 additions and 3 deletions
|
@ -694,10 +694,10 @@ function InventoryCraft(Source, Target, GroupName, Craft, Refresh, PreConfigureI
|
|||
Item.Property ??= {};
|
||||
Item.Difficulty ??= Item.Asset.Difficulty;
|
||||
|
||||
// Sets the crafter name and ID
|
||||
// Sets the crafter name and ID (if not already set)
|
||||
if (Source) {
|
||||
Item.Craft.MemberNumber = Source.MemberNumber;
|
||||
Item.Craft.MemberName = CharacterNickname(Source);
|
||||
Item.Craft.MemberNumber ??= Source.MemberNumber;
|
||||
Item.Craft.MemberName ??= CharacterNickname(Source);
|
||||
}
|
||||
|
||||
// Abort; the properties below are pre-configured by crafted items the first time they're applied,
|
||||
|
|
Loading…
Add table
Reference in a new issue