-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Floofstation-V7
- Loading branch information
Showing
18 changed files
with
309 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Content.Server/Polymorph/Components/PolymorphProviderComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Content.Server.Polymorph.Systems; | ||
using Content.Shared.Polymorph; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Server.Polymorph.Components; | ||
|
||
[RegisterComponent] | ||
[Access(typeof(PolymorphSystem))] | ||
public sealed partial class PolymorphProviderComponent : Component | ||
{ | ||
[DataField] | ||
public ProtoId<PolymorphPrototype> Polymorph; | ||
} |
31 changes: 31 additions & 0 deletions
31
Content.Server/Polymorph/Systems/PolymorphSystem.Provider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Content.Server.Actions; | ||
using Content.Server.Polymorph.Components; | ||
using Content.Shared.Actions; | ||
using Content.Shared.Inventory.Events; | ||
using Content.Shared.Polymorph; | ||
using Robust.Shared.Prototypes; | ||
using Robust.Shared.Utility; | ||
|
||
namespace Content.Server.Polymorph.Systems; | ||
|
||
public sealed partial class PolymorphSystem | ||
{ | ||
private void InitializeProvider() | ||
{ | ||
SubscribeLocalEvent<PolymorphProviderComponent, GotEquippedEvent>(OnEquipped); | ||
SubscribeLocalEvent<PolymorphProviderComponent, GotUnequippedEvent>(OnUnEquipped); | ||
} | ||
|
||
private void OnUnEquipped(EntityUid uid, PolymorphProviderComponent component, ref GotUnequippedEvent args) | ||
{ | ||
if (TryComp<PolymorphableComponent>(args.Equipee, out var polymorphable)) | ||
RemovePolymorphAction(component.Polymorph, (args.Equipee, polymorphable)); | ||
} | ||
|
||
private void OnEquipped(EntityUid uid, PolymorphProviderComponent component, ref GotEquippedEvent args) | ||
{ | ||
var polymorphable = EnsureComp<PolymorphableComponent>(args.Equipee); | ||
CreatePolymorphAction(component.Polymorph, (args.Equipee, polymorphable)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,3 +107,5 @@ | |
powersToAdd: | ||
- XenoglossyPower | ||
- TelepathyPower | ||
- type: LanguageSpeaker | ||
- type: UniversalLanguageSpeaker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
144 changes: 144 additions & 0 deletions
144
Resources/Prototypes/Floof/Entities/Clothing/Neck/amulet.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
|
||
- type: entity | ||
parent: ClothingNeckBase | ||
id: ClothingNeckDragonAmuletPolymorph | ||
name: dragon amulet | ||
description: A beautiful gold amulet, featuring a ruby that shines with an otherworldly glow. | ||
components: | ||
- type: Sprite | ||
sprite: Floof/Clothing/Neck/amulet_dragon.rsi | ||
- type: Clothing | ||
sprite: Floof/Clothing/Neck/amulet_dragon.rsi | ||
- type: PolymorphProvider | ||
polymorph: PolymorphDragonRubyFang | ||
|
||
- type: polymorph | ||
id: PolymorphDragonRubyFang | ||
configuration: | ||
entity: MobDragonRubyFang | ||
forced: false | ||
inventory: None | ||
transferName: true | ||
transferDamage: true | ||
revertOnCrit: true | ||
revertOnDeath: true | ||
|
||
- type: entity | ||
parent: [ SimpleSpaceMobBase, FlyingMobBase ] | ||
id: MobDragonRubyFang | ||
suffix: "" | ||
name: Rubyfang | ||
description: A giant dragon, probably a couple thousand years old. | ||
components: | ||
- type: Bloodstream | ||
bloodMaxVolume: 650 | ||
- type: Speech | ||
speechVerb: LargeMob | ||
- type: CombatMode | ||
- type: MobMover | ||
- type: InputMover | ||
- type: MovementSpeedModifier | ||
baseWalkSpeed: 3 | ||
baseSprintSpeed: 5 | ||
weightlessModifier: 1.5 | ||
- type: Sprite | ||
color: "#cc0000ff" | ||
sprite: Mobs/Aliens/Carps/dragon.rsi | ||
noRot: true | ||
layers: | ||
- map: [ "enum.DamageStateVisualLayers.Base" ] | ||
state: alive | ||
- map: [ "enum.DamageStateVisualLayers.BaseUnshaded" ] | ||
state: alive-unshaded | ||
shader: unshaded | ||
- type: Appearance | ||
- type: DamageStateVisuals | ||
states: | ||
Alive: | ||
Base: alive | ||
BaseUnshaded: alive-unshaded | ||
Critical: | ||
Base: crit | ||
Dead: | ||
Base: dead | ||
BaseUnshaded: dead-unshaded | ||
- type: Physics | ||
bodyType: KinematicController | ||
- type: Fixtures | ||
fixtures: | ||
fix1: | ||
shape: | ||
!type:PhysShapeCircle | ||
radius: 0.40 | ||
density: 100 | ||
mask: | ||
- FlyingMobMask | ||
layer: | ||
- FlyingMobLayer | ||
- type: MobState | ||
- type: MobStateActions | ||
actions: | ||
Critical: | ||
- ActionCritSuccumb | ||
- ActionCritLastWords | ||
- type: MobThresholds | ||
thresholds: | ||
0: Alive | ||
450: Critical | ||
500: Dead | ||
- type: SlowOnDamage | ||
speedModifierThresholds: | ||
250: 0.7 | ||
400: 0.5 | ||
# disable taking damage from fire, since its a fire breathing dragon | ||
- type: Flammable | ||
damage: | ||
types: {} | ||
- type: Temperature | ||
heatDamageThreshold: 800 | ||
- type: Metabolizer | ||
solutionOnBody: false | ||
updateInterval: 0.25 | ||
metabolizerTypes: [ Dragon ] | ||
groups: | ||
- id: Medicine | ||
- id: Poison | ||
- type: Butcherable | ||
spawned: | ||
- id: FoodMeatDragon | ||
amount: 2 | ||
- type: InteractionPopup | ||
successChance: 0.25 # It's no goose, but you better smell like carp. | ||
interactSuccessString: petting-success-dragon | ||
interactFailureString: petting-failure-dragon | ||
interactFailureSound: | ||
path: /Audio/Animals/space_dragon_roar.ogg | ||
soundPerceivedByOthers: false # A 75% chance for a loud roar would get old fast. | ||
- type: MeleeWeapon | ||
altDisarm: false | ||
soundHit: | ||
path: /Audio/Weapons/Xeno/alien_claw_flesh3.ogg | ||
damage: | ||
types: | ||
Piercing: 15 | ||
Slash: 15 | ||
- type: Devourer | ||
foodPreference: Humanoid | ||
shouldStoreDevoured: true | ||
chemical: Ichor | ||
healRate: 15.0 | ||
whitelist: | ||
components: | ||
- MobState | ||
- Door | ||
tags: | ||
- Wall | ||
- type: Tag | ||
tags: | ||
- CannotSuicide | ||
- DoorBumpOpener | ||
- type: UserInterface | ||
- type: Puller | ||
needsHands: false | ||
- type: Hands | ||
|
Oops, something went wrong.