Fix Punpun crew monitor sensor (#20484)
This commit is contained in:
@@ -5,5 +5,8 @@ namespace Content.Server.Access.Components
|
|||||||
{
|
{
|
||||||
[DataField("job")]
|
[DataField("job")]
|
||||||
public string? JobName;
|
public string? JobName;
|
||||||
|
|
||||||
|
[DataField("name")]
|
||||||
|
public string? IdName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user