Fix Punpun crew monitor sensor (#20484)
This commit is contained in:
@@ -5,5 +5,8 @@ namespace Content.Server.Access.Components
|
||||
{
|
||||
[DataField("job")]
|
||||
public string? JobName;
|
||||
|
||||
[DataField("name")]
|
||||
public string? IdName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
head: ClothingHeadHatTophat
|
||||
ears: ClothingHeadsetService
|
||||
jumpsuit: ClothingUniformJumpsuitJacketMonkey
|
||||
id: BartenderIDCard
|
||||
id: PunPunIDCard
|
||||
|
||||
# Passenger but without the ID, bag, or headset
|
||||
|
||||
|
||||
Reference in New Issue
Block a user