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

Harpy Customization Pack 1 #175

Merged
merged 16 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from 9 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
28 changes: 28 additions & 0 deletions Content.Server/DeltaV/Harpy/HarpySingerSystem.cs
VMSolidus marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Content.Server.Instruments;
using Content.Shared.Mobs;
using Content.Shared.Mobs.Systems;
using Robust.Server.GameObjects;

namespace Content.Server.DeltaV.Harpy
{
public sealed class HarpySingerSystem : EntitySystem
{
[Dependency] private readonly InstrumentSystem _instrument = default!;
[Dependency] private readonly MobStateSystem _mobState = default!;
public override void Initialize()
VMSolidus marked this conversation as resolved.
Show resolved Hide resolved
{
base.Initialize();

SubscribeLocalEvent<InstrumentComponent, MobStateChangedEvent>(HarpyStopSinging);
}
//Immediately closes the Midi UI window if a Singer is incapacitated
private void HarpyStopSinging(EntityUid uid, InstrumentComponent component, MobStateChangedEvent args)

{
VMSolidus marked this conversation as resolved.
Show resolved Hide resolved
if (HasComp<ActiveInstrumentComponent>(uid) && TryComp<ActorComponent>(uid, out var actor) && _mobState.IsIncapacitated(uid))
{
_instrument.ToggleInstrumentUi(uid, actor.PlayerSession);
}
}
}
}
1 change: 1 addition & 0 deletions Content.Shared/DeltaV/Harpy/HarpySingerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ private void OnShutdown(EntityUid uid, HarpySingerComponent component, Component
}
}
}

33 changes: 30 additions & 3 deletions Resources/Locale/en-US/deltav/markings/harpy.ftl
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
marking-HarpyWingDefault = Basic Wings
marking-HarpyWingDefault-harpy = Wings

marking-HarpyWing2Tone = Two Tone Wings
marking-HarpyWing2Tone-harpy2tone1 = Top Half
marking-HarpyWing2Tone-harpy2tone2 = Bottom Half

marking-HarpyWing3Tone = Three Tone Wings
marking-HarpyWing3Tone-harpy3tone1 = Top Third
marking-HarpyWing3Tone-harpy3tone2 = Middle Third
marking-HarpyWing3tone-harpy3tone3 = Bottom Third

marking-HarpyWingSpeckled = Speckled Wings
marking-HarpyWingSpeckled-harpyspeckled1 = Main
marking-HarpyWingSpeckled-harpyspeckled2 = Speckles

marking-HarpyWingUndertone = Wings with Undertone
marking-HarpyWingUndertone-harpyundertone1 = Front
marking-HarpyWingUndertone-harpyundertone2 = Back

marking-HarpyWingTips = Wings with Feather Tips
marking-HarpyWingTips-harpywingtip1 = Main
marking-HarpyWingTips-harpywingtip2 = Feathertips

marking-HarpyEarsDefault = Feather Tufts
marking-HarpyTailSwallow = Swallow Tail
marking-HarpyTailPhoenix = Phoenix Tail
marking-HarpyTailRooster = Rooster Tail
marking-HarpyEarsDefault-harpy_ears_default = Tufts

marking-HarpyTailPhoenix = Basic Tail
marking-HarpyTailPhoenix-phoenix_tail = Tail

marking-HarpyTailRooster = Rooster Tail
marking-HarpyTailRooster-rooster_tail = Tail
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,9 @@
markingCategory: Arms
speciesRestriction: [Harpy]
sprites:
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings_default.rsi
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpy

- type: marking
id: HarpyTailSwallow
bodyPart: Tail
markingCategory: Tail
speciesRestriction: [Harpy]
sprites:
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_tails.rsi
state: harpy_tail_swallow

- type: marking
id: HarpyEarsDefault
bodyPart: Head
Expand All @@ -45,3 +36,60 @@
sprites:
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_tails.rsi
state: rooster_tail

- type: marking
id: HarpyWing2Tone
bodyPart: RArm
markingCategory: Arms
speciesRestriction: [Harpy]
sprites:
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpy2tone1
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpy2tone2

- type: marking
id: HarpyWing3Tone
bodyPart: RArm
markingCategory: Arms
speciesRestriction: [Harpy]
sprites:
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpy3tone1
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpy3tone2
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpy3tone3

- type: marking
id: HarpyWingSpeckled
bodyPart: RArm
markingCategory: Arms
speciesRestriction: [Harpy]
sprites:
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpyspeckled1
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpyspeckled2

- type: marking
id: HarpyWingUndertone
bodyPart: RArm
markingCategory: Arms
speciesRestriction: [Harpy]
sprites:
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpyundertone1
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpyundertone2

- type: marking
id: HarpyWingTips
bodyPart: RArm
markingCategory: Arms
speciesRestriction: [Harpy]
sprites:
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpywingtip1
- sprite: DeltaV/Mobs/Customization/Harpy/harpy_wings.rsi
state: harpywingtip2
14 changes: 12 additions & 2 deletions Resources/Prototypes/DeltaV/Entities/Mobs/Species/harpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
- type: Instrument
allowPercussion: false
program: 52
- type: SwappableInstrument
instrumentList:
"Voice": {52: 0}
"Trumpet": {56: 0}
"Electric": {27: 0}
"Bass": {33: 0}
"Rock": {29: 0}
"Acoustic": {24: 0}
"Flute": {73: 0}
"Sax": {66: 0}
- type: UserInterface
interfaces:
- key: enum.InstrumentUiKey.Key
Expand Down Expand Up @@ -151,11 +161,11 @@
- type: entity
id: ActionHarpyPlayMidi
name: Play MIDI
description: Sing your heart out!
description: Sing your heart out! Right click yourself to set an instrument.
noSpawn: true
components:
- type: InstantAction
checkCanInteract: false
checkCanInteract: true
icon: DeltaV/Interface/Actions/harpy_sing.png
event: !type:OpenUiActionEvent
key: enum.InstrumentUiKey.Key
6 changes: 6 additions & 0 deletions Resources/Prototypes/DeltaV/Voice/speech_emote_sounds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
collection: HarpyCaws
Chirp:
collection: HarpyChirps
Snarl:
collection: VulpakinSnarls
Bark:
collection: VulpakinBarks
Whine:
collection: VulpakinWhines

- type: emoteSounds
id: MaleVulpakin
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Swallow taken from S.P.L.U.R.T at https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13/blob/master/modular_splurt/icons/mob/mam_tails.dmi, Phoenix and Rooster by @leonardo_dabepis",
"copyright": "Phoenix and Rooster by @leonardo_dabepis",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "harpy_tail_swallow",
"directions": 4
},
{
"name": "phoenix_tail",
"directions": 4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from S.P.L.U.R.T at commit https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13/commit/285f6f86ac41a6246f250993486effeab8581c2c, edited by @raistlin_jag",
"states": [
{
"name": "harpy",
"directions": 4
},
{
"name": "harpy2tone1",
"directions": 4
},
{
"name": "harpy2tone2",
"directions": 4
},
{
"name": "harpy3tone1",
"directions": 4
},
{
"name": "harpy3tone2",
"directions": 4
},
{
"name": "harpy3tone3",
"directions": 4
},
{
"name": "harpyspeckled1",
"directions": 4
},
{
"name": "harpyspeckled2",
"directions": 4
},
{
"name": "harpyundertone1",
"directions": 4
},
{
"name": "harpyundertone2",
"directions": 4
},
{
"name": "harpywingtip1",
"directions": 4
},
{
"name": "harpywingtip2",
"directions": 4
}
]
}
Binary file not shown.

This file was deleted.

Loading