Change whitelist logic for parcel wrap (#40800)

* init

* review
This commit is contained in:
ScarKy0
2025-10-09 15:00:13 +02:00
committed by GitHub
parent e3f6b00362
commit fea8ac4522
2 changed files with 12 additions and 2 deletions

View File

@@ -51,7 +51,6 @@ public sealed partial class ParcelWrappingSystem : EntitySystem
wrapper.Owner != target &&
// Wrapper should never be empty, but may as well make sure.
!_charges.IsEmpty(wrapper.Owner) &&
_whitelist.IsWhitelistPass(wrapper.Comp.Whitelist, target) &&
_whitelist.IsBlacklistFail(wrapper.Comp.Blacklist, target);
_whitelist.CheckBoth(target, wrapper.Comp.Blacklist, wrapper.Comp.Whitelist);
}
}

View File

@@ -28,6 +28,17 @@
- type: LimitedCharges
maxCharges: 30
- type: entity
parent: ParcelWrap
id: ParcelWrapAdmeme
name: bluespace wrap
suffix: Admeme
description: Paper used contain items for transport. This one seems to be able to store an unusual amount of space within it.
components:
- type: ParcelWrap
whitelist: null
blacklist: null
- type: entity
parent: BaseItem
id: WrappedParcel