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")]
public string? JobName;
[DataField("name")]
public string? IdName;
}
}

View File

@@ -37,6 +37,7 @@ namespace Content.Server.Access.Systems
return;
SetupIdAccess(uid, card, true);
SetupIdName(uid, card);
}
}
@@ -53,6 +54,14 @@ namespace Content.Server.Access.Systems
extended = Comp<StationJobsComponent>(station.Value).ExtendedAccess;
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)

View File

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

View File

@@ -293,6 +293,19 @@
- type: PresetIdCard
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
parent: IDCardStandard
id: ChefIDCard

View File

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