Fix Punpun crew monitor sensor (#20484)

This commit is contained in:
Repo
2023-09-28 23:53:53 +13:00
committed by GitHub
parent c0ddb6f411
commit 0a8a6f81c5
5 changed files with 30 additions and 1 deletions

View File

@@ -5,5 +5,8 @@ namespace Content.Server.Access.Components
{ {
[DataField("job")] [DataField("job")]
public string? JobName; public string? JobName;
[DataField("name")]
public string? IdName;
} }
} }

View File

@@ -37,6 +37,7 @@ namespace Content.Server.Access.Systems
return; return;
SetupIdAccess(uid, card, true); SetupIdAccess(uid, card, true);
SetupIdName(uid, card);
} }
} }
@@ -53,6 +54,14 @@ namespace Content.Server.Access.Systems
extended = Comp<StationJobsComponent>(station.Value).ExtendedAccess; extended = Comp<StationJobsComponent>(station.Value).ExtendedAccess;
SetupIdAccess(uid, id, extended); SetupIdAccess(uid, id, extended);
SetupIdName(uid, id);
}
private void SetupIdName(EntityUid uid, PresetIdCardComponent id)
{
if (id.IdName == null)
return;
_cardSystem.TryChangeFullName(uid, id.IdName);
} }
private void SetupIdAccess(EntityUid uid, PresetIdCardComponent id, bool extended) private void SetupIdAccess(EntityUid uid, PresetIdCardComponent id, bool extended)

View File

@@ -48,6 +48,10 @@
sprite: Clothing/Uniforms/Jumpsuit/punpun.rsi sprite: Clothing/Uniforms/Jumpsuit/punpun.rsi
- type: Clothing - type: Clothing
sprite: Clothing/Uniforms/Jumpsuit/punpun.rsi sprite: Clothing/Uniforms/Jumpsuit/punpun.rsi
- type: SuitSensor
controlsLocked: false
randomMode: false
mode: SensorCords
- type: entity - type: entity
parent: ClothingUniformBase parent: ClothingUniformBase

View File

@@ -293,6 +293,19 @@
- type: PresetIdCard - type: PresetIdCard
job: Bartender job: Bartender
- type: entity
parent: IDCardStandard
id: PunPunIDCard
name: pun pun ID card
components:
- type: Sprite
layers:
- state: default
- state: idbartender
- type: PresetIdCard
job: Bartender
name: Pun Pun
- type: entity - type: entity
parent: IDCardStandard parent: IDCardStandard
id: ChefIDCard id: ChefIDCard

View File

@@ -282,7 +282,7 @@
head: ClothingHeadHatTophat head: ClothingHeadHatTophat
ears: ClothingHeadsetService ears: ClothingHeadsetService
jumpsuit: ClothingUniformJumpsuitJacketMonkey jumpsuit: ClothingUniformJumpsuitJacketMonkey
id: BartenderIDCard id: PunPunIDCard
# Passenger but without the ID, bag, or headset # Passenger but without the ID, bag, or headset