Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Фикс хвостов #344

Merged
merged 2 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Content.Shared/Clothing/EntitySystems/ClothingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ protected virtual void OnGotEquipped(EntityUid uid, ClothingComponent component,
component.InSlot = args.Slot;
CheckEquipmentForLayerHide(args.Equipment, args.Equipee);

if (_tagSystem.HasTag(args.Equipment, TailTag))
{
_humanoidSystem.SetLayerVisibility(args.Equipee, HumanoidVisualLayers.Tail, false);
}
Farrellka-dev marked this conversation as resolved.
Show resolved Hide resolved

if ((component.Slots & args.SlotFlags) != SlotFlags.NONE)
{
var gotEquippedEvent = new ClothingGotEquippedEvent(args.Equipee, component);
Expand All @@ -160,10 +165,10 @@ protected virtual void OnGotUnequipped(EntityUid uid, ClothingComponent componen

component.InSlot = null;
CheckEquipmentForLayerHide(args.Equipment, args.Equipee);
if ((new string[] { "outerClothing" }).Contains(args.Slot) && _tagSystem.HasTag(args.Equipee, TailTag) && _tagSystem.HasTag(args.Equipment, TailTag))

if (_tagSystem.HasTag(args.Equipment, TailTag))
{
_humanoidSystem.SetLayerVisibility(args.Equipee, HumanoidVisualLayers.Tail, true);
TryComp(args.Equipee, out AppearanceComponent? appearance);
}
Farrellka-dev marked this conversation as resolved.
Show resolved Hide resolved
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
species: Vulpkanin
- type: Hunger
baseDecayRate: 0.02083333332 # 25% more than default
#- type: Carriable # Carrying system from nyanotrasen.
- type: Carriable # Carrying system from nyanotrasen.
- type: Inventory # Allows vulps to wear properly shaped helmets
speciesId: vulpkanin
- type: Thirst
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- WhitelistChameleon
- FullBodyOuter
- HidesHarpyWings
- HidesTail
- type: ClothingRequiredStepTriggerImmune
slots: WITHOUT_POCKET

Expand Down Expand Up @@ -86,6 +87,7 @@
tags:
- WhitelistChameleon
- HidesHarpyWings
- HidesTail

- type: entity
parent: [ClothingOuterBaseLarge, AllowSuitStorageClothing]
Expand Down Expand Up @@ -122,6 +124,7 @@
- FullBodyOuter
- WhitelistChameleon
- HidesHarpyWings
- HidesTail

- type: entity
parent: [ClothingOuterBaseLarge, GeigerCounterClothing, AllowSuitStorageClothing]
Expand Down Expand Up @@ -152,6 +155,7 @@
- FullBodyOuter
- WhitelistChameleon
- HidesHarpyWings
- HidesTail

- type: entity
parent: [ClothingOuterBaseLarge, AllowSuitStorageClothing]
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Player/dwarf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
save: false
name: Urist McHands The Dwarf
parent: BaseMobDwarf
id: MobDwarf
id: MobDwarf
11 changes: 8 additions & 3 deletions Resources/Prototypes/Entities/Mobs/Player/familiars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- type: MobThresholds
thresholds:
0: Alive
100: Dead
50: Dead
- type: Damageable
damageContainer: CorporealSpirit
damageModifierSet: CorporealSpirit
Expand Down Expand Up @@ -61,12 +61,11 @@
attackMemoryLength: 10
retaliateFriendlies: true
- type: PsionicFamiliar
- type: Dispellable
- type: DamageOnDispel
damage:
types:
Heat: 100
- type: RandomMetadata
nameSegments: [names_golem]

- type: entity
name: Remilia
Expand Down Expand Up @@ -130,6 +129,10 @@
damage:
types:
Piercing: 5
- type: MobThresholds
thresholds:
0: Alive
30: Dead
Farrellka-dev marked this conversation as resolved.
Show resolved Hide resolved

- type: entity
name: Cerberus
Expand Down Expand Up @@ -239,3 +242,5 @@
- Opaque
layer:
- MobLayer
- type: RandomMetadata
nameSegments: [names_golem]
Farrellka-dev marked this conversation as resolved.
Show resolved Hide resolved
26 changes: 14 additions & 12 deletions Resources/Prototypes/Entities/Mobs/Player/ipc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
unlockTime: 5
- type: NpcFactionMember
factions:
- NanoTrasen
- NanoTrasen
- type: StandingState
- type: MobState
allowedStates:
- Alive
- Critical
- Dead
- Alive
- Critical
- Dead
- type: MobThresholds
thresholds:
0: Alive
Expand All @@ -50,12 +50,12 @@
proto: robot
- type: Destructible
thresholds:
- trigger:
!type:DamageTypeTrigger
damageType: Blunt
damage: 400
behaviors:
- !type:GibBehavior { }
- trigger:
!type:DamageTypeTrigger
damageType: Blunt
damage: 400
behaviors:
- !type:GibBehavior { }
- type: SlowOnDamage
speedModifierThresholds:
60: 0.7
Expand All @@ -66,7 +66,7 @@
templateId: ipc
- type: GuideHelp
guides:
- IPCs
- IPCs
- type: Silicon
entityType: enum.SiliconType.Player
batteryPowered: true
Expand Down Expand Up @@ -105,7 +105,9 @@
- type: PsionicInsulation
- type: OfferItem
- type: LayingDown
# - type: Carriable
- type: Carriable
- type: StatusIcon
bounds: -0.5,-0.5,0.5,0.5
- type: StepTriggerImmune
whitelist:
types:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Player/moth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
save: false
name: Urist McFluff
parent: BaseMobMoth
id: MobMoth
id: MobMoth
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Player/ratvar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@
maxRange: 8
- type: WarpPoint
follow: true
location: Ratvar
location: Ratvar
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Player/shadowkin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
save: false
name: Urist McShadow
parent: MobShadowkinBase
id: MobShadowkin
id: MobShadowkin
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
- trigger: !type:DamageTrigger
damage: 500
behaviors:
- !type:GibBehavior {}
- !type:GibBehavior { }
- type: Icon
sprite: Mobs/Species/IPC/parts.rsi
state: full
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Player/slime.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- type: entity
save: false
parent: BaseMobSlimePerson
id: MobSlimePerson
id: MobSlimePerson
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Player/vox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
save: false
name: Urist McVox
parent: BaseMobVox
id: MobVox
id: MobVox
9 changes: 8 additions & 1 deletion Resources/Prototypes/Entities/Mobs/Species/arachne.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
color: "#e8b59b"
sprite: Mobs/Species/Human/parts.rsi
state: head_m
- map: [ "enum.HumanoidVisualLayers.Snout" ]
Farrellka-dev marked this conversation as resolved.
Show resolved Hide resolved
- map: [ "enum.HumanoidVisualLayers.Eyes" ]
color: "#008800"
sprite: Mobs/Species/eyes.rsi
Expand All @@ -42,7 +43,6 @@
sprite: Mobs/Customization/anytaur_masking_helpers.rsi
state: unisex_full
visible: false
- map: [ "breast" ]
- map: [ "jumpsuit" ]
- map: [ "enum.HumanoidVisualLayers.LHand" ]
color: "#e8b59b"
Expand All @@ -66,10 +66,12 @@
- map: [ "belt" ]
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.Hair" ]
state: bald
sprite: Mobs/Customization/human_hair.rsi
- map: [ "mask" ]
- map: [ "enum.HumanoidVisualLayers.HeadSide" ] # This is not in the default order so earrings are rendered above masks
- map: [ "head" ]
- map: [ "pocket1" ]
- map: [ "pocket2" ]
Expand Down Expand Up @@ -105,6 +107,7 @@
- type: Tag
tags:
- CanPilot
- FootstepSound
- DoorBumpOpener
- type: StepTriggerImmune
- type: Bloodstream
Expand Down Expand Up @@ -161,6 +164,7 @@
color: "#e8b59b"
sprite: Mobs/Species/Human/parts.rsi
state: head_m
- map: [ "enum.HumanoidVisualLayers.Snout" ]
- map: [ "enum.HumanoidVisualLayers.Eyes" ]
color: "#008800"
sprite: Mobs/Species/eyes.rsi
Expand Down Expand Up @@ -195,6 +199,7 @@
sprite: Objects/Misc/handcuffs.rsi
state: body-overlay-2
visible: false
- map: [ "breast" ]
- map: [ "id" ]
- map: [ "gloves" ]
- map: [ "shoes" ]
Expand All @@ -204,10 +209,12 @@
- map: [ "belt" ]
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.Hair" ]
state: bald
sprite: Mobs/Customization/human_hair.rsi
- map: [ "mask" ]
- map: [ "enum.HumanoidVisualLayers.HeadSide" ] # This is not in the default order so earrings are rendered above masks
- map: [ "head" ]
- map: [ "pocket1" ]
- map: [ "pocket2" ]
Expand Down
4 changes: 3 additions & 1 deletion Resources/Prototypes/Entities/Mobs/Species/arachnid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
species: Arachnid
- type: Hunger
baseDecayRate: 0.0125 # Spiders have slow metabolisms all things considered, so I decided to just make their hunger drain slower.
#- type: Carriable # Carrying system from nyanotrasen.
- type: Carriable # Carrying system from nyanotrasen.
Farrellka-dev marked this conversation as resolved.
Show resolved Hide resolved
- type: Thirst
- type: Sericulture
action: ActionSericulture
Expand Down Expand Up @@ -130,6 +130,8 @@
sprite: "Effects/creampie.rsi"
state: "creampie_arachnid"
visible: false
- type: Spider
- type: IgnoreSpiderWeb

- type: entity
parent: BaseSpeciesDummy
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Species/diona.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
baseDecayRate: 0.0083
- type: Thirst
baseDecayRate: 0.0083
#- type: Carriable # Carrying system from nyanotrasen.
- type: Carriable # Carrying system from nyanotrasen.
- type: Icon
sprite: Mobs/Species/Diona/parts.rsi
state: full
Expand Down
4 changes: 3 additions & 1 deletion Resources/Prototypes/Entities/Mobs/Species/dwarf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
components:
- type: Hunger
- type: Thirst
#- type: Carriable # Carrying system from nyanotrasen.
- type: Carriable # Carrying system from nyanotrasen.
- type: Icon
sprite: Mobs/Species/Slime/parts.rsi # It was like this beforehand, no idea why.
state: full
Expand Down Expand Up @@ -65,6 +65,8 @@
- SolCommon
- type: LightweightDrunk
boozeStrengthMultiplier: 0.5
- type: Stamina
critThreshold: 115

- type: entity
parent: BaseSpeciesDummy
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Species/harpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,4 @@
checkCanInteract: false
icon: { sprite: Interface/Actions/flight.rsi, state: flight_off }
iconOn: { sprite : Interface/Actions/flight.rsi, state: flight_on }
event: !type:ToggleFlightEvent
event: !type:ToggleFlightEvent
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Species/human.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
sprite: Mobs/Species/Human/parts.rsi
state: full
- type: Thirst
#- type: Carriable # Carrying system from nyanotrasen.
- type: Carriable # Carrying system from nyanotrasen.
- type: Butcherable
butcheringType: Spike
spawned:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Species/moth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
species: Moth
- type: Hunger
- type: Thirst
#- type: Carriable # Carrying system from nyanotrasen.
- type: Carriable # Carrying system from nyanotrasen.
- type: Icon
sprite: Mobs/Species/Moth/parts.rsi
state: full
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Species/reptilian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- type: Puller
needsHands: false
- type: Thirst
#- type: Carriable # Carrying system from nyanotrasen.
- type: Carriable # Carrying system from nyanotrasen.
- type: Icon
sprite: Mobs/Species/Reptilian/parts.rsi
state: full
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Mobs/Species/skeleton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
components:
- type: HumanoidAppearance
species: Skeleton
#- type: Carriable # Carrying system from nyanotrasen.
- type: Carriable # Carrying system from nyanotrasen.
- type: Icon
sprite: Mobs/Species/Skeleton/parts.rsi
state: full
Expand Down Expand Up @@ -40,7 +40,7 @@
!type:DamageTrigger
damage: 150
behaviors:
- !type:GibBehavior { }
- !type:GibBehavior
- type: SlowOnDamage #modified speeds because they're so weak
speedModifierThresholds:
60: 0.9
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Species/slime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
components:
- type: Hunger
- type: Thirst
#- type: Carriable # Carrying system from nyanotrasen.
- type: Carriable # Carrying system from nyanotrasen.
- type: Icon
sprite: Mobs/Species/Slime/parts.rsi
state: full
Expand Down
1 change: 0 additions & 1 deletion Resources/Prototypes/Entities/Mobs/Species/vox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,3 @@
species: Vox
- type: Body
prototype: Vox

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
- TauCetiBasic
# # - type: EmotePanel
# race: Shark
#- type: Carriable
- type: Carriable

- type: entity
save: false
Expand Down
Loading