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

[WiP] Minor fauna update #2517

Draft
wants to merge 46 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
1ffa2cf
Спавн пачками не изменяя количество мобов
Kiiwwwie Jan 29, 2025
5492a40
Фиксим комментарии
Kiiwwwie Jan 30, 2025
ffc69e5
Фиксим комментарии 2
Kiiwwwie Jan 30, 2025
3e7b026
Код перекод спавна мобов
Kiiwwwie Jan 30, 2025
bb67b09
Код перекод 2
Kiiwwwie Jan 30, 2025
56480f9
Реверт щиткода +спавн группами
Kiiwwwie Jan 30, 2025
90ac639
Реверт файла 2
Kiiwwwie Jan 30, 2025
ba2c1b3
ТЫкаем змеек
Kiiwwwie Jan 31, 2025
837edeb
Merge branch 'SerbiaStrong-220:master' into faunaUpdate
Kiiwwwie Feb 1, 2025
02e2abd
Merge branch 'faunaUpdate' of https://github.com/Kiiwwwie/space-stati…
Kiiwwwie Feb 1, 2025
b7e3ed6
Гост роли космических кобр и гадюк + змеи проходят под шлюзами
Kiiwwwie Feb 1, 2025
64bcafc
Фикс гадюк + Ноуслип слаймам и гадюкам
Kiiwwwie Feb 1, 2025
545364e
Разделение ивента космических змей и кобр
Kiiwwwie Feb 1, 2025
8736b94
Применяем баланс З О Н Е С А на скорость вскрытия дверей
Kiiwwwie Feb 1, 2025
6d122f6
Стамина резисты
Kiiwwwie Feb 2, 2025
59ff019
Стамина резисты 2
Kiiwwwie Feb 3, 2025
9cbdc7c
Тарантулы строят стены
Kiiwwwie Feb 3, 2025
da726e9
Отдельный экшн для тарантулов
Kiiwwwie Feb 3, 2025
9c038da
Не бейся головой об дверь!
Kiiwwwie Feb 3, 2025
8451804
Пауки цепляются за поверхность при отсутствии гравитации
Kiiwwwie Feb 4, 2025
c82ae94
Локаль гост ролей кобр и гадюк
Kiiwwwie Feb 4, 2025
5e6967a
Merge branch 'SerbiaStrong-220:master' into faunaUpdate
Kiiwwwie Feb 4, 2025
574c6cb
Merge branch 'faunaUpdate' of https://github.com/Kiiwwwie/space-stati…
Kiiwwwie Feb 4, 2025
06f0b8a
Термальное зрение тарантулам
Kiiwwwie Feb 4, 2025
4ace45c
Merge branch 'SerbiaStrong-220:master' into faunaUpdate
Kiiwwwie Feb 5, 2025
8550722
Экшн выламывания шлюзов
Kiiwwwie Feb 6, 2025
07b8471
Откладывание яиц тарантулам (недоделанное)
Kiiwwwie Feb 6, 2025
eec57c3
Merge branch 'master' into faunaUpdate
Kiiwwwie Feb 6, 2025
9bfcca4
Кладка тарантулов (В работе)
Kiiwwwie Feb 6, 2025
fcd88fd
Кладка тарантулов + одиночное создание паутины
Kiiwwwie Feb 6, 2025
680a382
Перенос файлов + плейсхолдеры тарантулов + исправление локали
Kiiwwwie Feb 7, 2025
222cd02
Стены из сахарной паутины, материал сахарной паутины, специальные дей…
Kiiwwwie Feb 8, 2025
dfba4f4
Плейсхолдеры коконов животных
Kiiwwwie Feb 8, 2025
c9be367
Update Content.Shared/Prying/Systems/PryingSystem.cs
Kiiwwwie Feb 8, 2025
2ad5877
Merge branch 'SerbiaStrong-220:master' into faunaUpdate
Kiiwwwie Feb 10, 2025
7af240a
Срать
Kiiwwwie Feb 10, 2025
650ec47
Merge branch 'faunaUpdate' of https://github.com/Kiiwwwie/space-stati…
Kiiwwwie Feb 10, 2025
fb40605
Исправления + срать
Kiiwwwie Feb 10, 2025
3ea3a07
Срать 3
Kiiwwwie Feb 10, 2025
27301c4
Основа экшна врапа в кокон для пауков
Kiiwwwie Feb 11, 2025
229b103
Разные коконы для людей, животных и мелких животных
Kiiwwwie Feb 11, 2025
3eeb85d
дикс
Kiiwwwie Feb 13, 2025
389d03c
маппинг.заебал
Kiiwwwie Feb 15, 2025
0288d7c
Уээ
Kiiwwwie Feb 15, 2025
4e5a322
Merge branch 'SerbiaStrong-220:master' into faunaUpdate
Kiiwwwie Feb 15, 2025
160ff41
Merge branch 'master' into faunaUpdate
Kiiwwwie Feb 22, 2025
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
8 changes: 8 additions & 0 deletions Content.Shared/Prying/Components/PryingComponent.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;

namespace Content.Shared.Prying.Components;

Expand Down Expand Up @@ -36,6 +37,12 @@ public sealed partial class PryingComponent : Component
/// </summary>
[DataField]
public bool Enabled = true;

[ViewVariables]
public EntityUid? ActionPryingEntity;

[DataField("actionPry")]
public EntProtoId ActionPrying = "ActionPrying";
}

/// <summary>
Expand Down Expand Up @@ -94,3 +101,4 @@ public GetPryTimeModifierEvent(EntityUid user)
}
}


16 changes: 15 additions & 1 deletion Content.Shared/Prying/Systems/PryingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
using Content.Shared.Prying.Components;
using Content.Shared.Verbs;
using Robust.Shared.Audio.Systems;
using Content.Shared.SS220.Prying; //ss220 fauna update
using Robust.Shared.Serialization;
using PryUnpoweredComponent = Content.Shared.Prying.Components.PryUnpoweredComponent;

namespace Content.Shared.Prying.Systems;

/// <summary>
Expand All @@ -31,8 +31,22 @@ public override void Initialize()
SubscribeLocalEvent<DoorComponent, GetVerbsEvent<AlternativeVerb>>(OnDoorAltVerb);
SubscribeLocalEvent<DoorComponent, DoorPryDoAfterEvent>(OnDoAfter);
SubscribeLocalEvent<DoorComponent, InteractUsingEvent>(TryPryDoor);

SubscribeLocalEvent<PryingComponent, ActionPryingEvent>(OnPryActionEvent); //ss220 fauna update
}

//ss220 fauna update start
private void OnPryActionEvent(Entity<PryingComponent> entity, ref ActionPryingEvent args)
{
if (args.Handled)
return;

if (!TryComp(args.Target, out DoorComponent? comp))
return;

args.Handled = TryPry(args.Target, args.Performer, out _, args.Performer);
}
//ss220 fauna update end
private void TryPryDoor(EntityUid uid, DoorComponent comp, InteractUsingEvent args)
{
if (args.Handled)
Expand Down
7 changes: 7 additions & 0 deletions Content.Shared/SS220/Prying/PryingAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using Content.Shared.Actions;

namespace Content.Shared.SS220.Prying;

public sealed partial class ActionPryingEvent : EntityTargetActionEvent
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ ghost-role-information-traveling-chef-description = Вы - шеф-повар н
ghost-role-information-traveling-chef-rules = Действуют обычные правила для экипажа станции.
# Lost souls roles end

#Fauna update start here!!!
ghost-role-information-giant-fly-name = Веспия
ghost-role-information-giant-fly-description = Вы гигантская боевая оса. Ваша задача - уничтожить всех кроме представителей вашего вида.
ghost-role-information-giant-fly-rules = Вы [color=red][bold]Командный антагонист[/bold][/color], в команде с другими гигантскими осами.
ghost-role-information-giant-fly-rules = Вы [color=red][bold]Командный антагонист[/bold][/color], в команде с другими гигантскими осами.

ghost-role-information-space-adder-name = Космическая гадюка
ghost-role-information-space-adder-description = Обитатели этой станции выглядят очень аппетитно, как раз вам на зубок.
ghost-role-information-small-space-adder-name = Маленькая космическая гадюка

ghost-role-information-cobra-space-name = Космическая кобра
ghost-role-information-cobra-space-description = Когда вас заметят - будет слишком поздно. Выползайте на охоту!
ghost-role-information-snake-overall-rules = Вы [color=red][bold]Командный антагонист[/bold][/color], в команде с другими змеями из далёкого космоса.
#Fauna update end here!!!
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ent-MobCobraSpaceGhostRole = { ent-MobCobraSpace }
.suffix = Роль призрака
.desc = { ent-MobCobraSpace.desc }
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ent-MobPurpleSnakeGhostRole = { ent-MobPurpleSnake }
.desc = { ent-MobPurpleSnake.desc }
.suffix = Роль призрака
ent-MobSmallPurpleSnakeGhostRole = { ent-MobSmallPurpleSnake }
.desc = { ent-MobSmallPurpleSnake.desc }
.suffix = { ent-MobSmallPurpleSnake.suffix }, Роль призрака
27 changes: 26 additions & 1 deletion Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2352,6 +2352,15 @@
- type: Spider
- type: IgnoreSpiderWeb
- type: Bloodstream
#SS220 Fauna update start
- type: ThermalVision
state: Half
visionRadius: 14
- type: Damageable
damageContainer: Biological
damageModifierSet: SpiderMob
- type: Magboots
#SS220 Fauna update end
bloodMaxVolume: 150
bloodReagent: CopperBlood
- type: Speech
Expand All @@ -2372,7 +2381,7 @@
- type: Prying # Open door from xeno.yml.
pryPowered: true
force: true
speedModifier: 1.5
speedModifier: 3 #SS220 Fauna update 1.5 -> 3. B A L A N S Z O N E S A
useSound:
path: /Audio/Items/crowbar.ogg
- type: PassiveDamage # Slight passive regen. Assuming one damage type, comes out to about 4 damage a minute from base.yml.
Expand Down Expand Up @@ -2448,6 +2457,14 @@
damage:
types:
Piercing: 6
#SS220 Fauna update start
- type: ActionGrant
actions:
- ActionSpawnSpiderWallWebTarantula
- ActionPryingTarantula
- ActionSpawnSpiderEggTarantula
- ActionSpawnSingleSpiderWebTarantula
#SS220 Fauna update end

- type: entity
parent:
Expand Down Expand Up @@ -2502,6 +2519,14 @@
- type: Bloodstream
bloodMaxVolume: 150
bloodReagent: Laughter
#SS220 Fauna update start
- type: ActionGrant
actions:
- ActionPryingClownSpider
- ActionSpawnSpiderWallWebClownSpider
- ActionSpawnSpiderEggClownSpider
- ActionSpawnSingleSpiderWebClownSpider
#SS220 Fauna update end

- type: entity
name: wizard spider
Expand Down
3 changes: 2 additions & 1 deletion Resources/Prototypes/Entities/Mobs/NPCs/slimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract: true
description: It looks so much like jelly. I wonder what it tastes like?
components:
- type: NoSlip #SS220 Fauna update
- type: Sprite
drawdepth: Mobs
sprite: Mobs/Aliens/slimes.rsi
Expand Down Expand Up @@ -53,7 +54,7 @@
maxSaturation: 15
- type: Damageable
damageContainer: Biological
damageModifierSet: Slime
damageModifierSet: SlimeMob #SS220 FaunaUpdate
- type: Bloodstream
bloodReagent: Slime
bloodlossDamage:
Expand Down
18 changes: 15 additions & 3 deletions Resources/Prototypes/Entities/Mobs/NPCs/space.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,14 @@
parent: MobSpaceBasic
description: Long fangs and a glowing hood, and the alluring look begs to come closer.
components:
#SS220 Fauna update start
- type: NoSlip
- type: Damageable
damageContainer: Biological
damageModifierSet: SnakeMob
#SS220 Fauna update end
- type: Sprite
drawdepth: Mobs
drawdepth: SmallMobs #SS220 Fauna update
sprite: Mobs/Animals/spacecobra.rsi
layers:
- map: [ "enum.DamageStateVisualLayers.Base" ]
Expand Down Expand Up @@ -329,9 +335,9 @@
radius: 0.40
density: 120
mask:
- MobMask
- SmallMobMask #SS220 Fauna update
layer:
- MobLayer
- SmallMobLayer #SS220 Fauna update
- type: MeleeWeapon
hidden: true
soundHit:
Expand Down Expand Up @@ -367,6 +373,12 @@
- type: StealthOnMove
passiveVisibilityRate: -0.25
movementVisibilityRate: 0.25
#SS220 Fauna Update start
- type: Tag
tags:
- CannotSuicide
- FootstepSound
#SS220 Fauna Update end

- type: entity
id: MobCobraSpaceSalvage
Expand Down
16 changes: 11 additions & 5 deletions Resources/Prototypes/Entities/Mobs/NPCs/xeno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,14 @@
id: MobPurpleSnake
description: A menacing purple snake from Kepler-283c.
components:
#SS220 Fauna update start
- type: NoSlip
- type: Damageable
damageContainer: Biological
damageModifierSet: SnakeMob
#SS220 Fauna update end
- type: Sprite
drawdepth: Mobs
drawdepth: SmallMobs #SS220 Fauna update
sprite: Mobs/Aliens/Xenos/purple_snake.rsi
layers:
- map: ["enum.DamageStateVisualLayers.Base"]
Expand Down Expand Up @@ -416,15 +422,15 @@
radius: 0.35
density: 25
mask:
- MobMask
- SmallMobMask #SS220 Fauna update
layer:
- MobLayer
- SmallMobLayer #SS220 Fauna update
- type: FootstepModifier
footstepSoundCollection:
collection: FootstepSnake
- type: Tag
tags:
- DoorBumpOpener
# - DoorBumpOpener #Muted tag cause of SS220 fauna update
- FootstepSound

- type: entity
Expand All @@ -435,7 +441,7 @@
description: A smaller version of the menacing purple snake from Kepler-283c.
components:
- type: Sprite
drawdepth: Mobs
drawdepth: SmallMobs #SS220 Fauna update
sprite: Mobs/Aliens/Xenos/purple_snake.rsi
layers:
- map: ["enum.DamageStateVisualLayers.Base"]
Expand Down
15 changes: 15 additions & 0 deletions Resources/Prototypes/Entities/Objects/Misc/spider_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,27 @@
damageModifierSet: Wood
- type: Destructible
thresholds:
#SS220 fauna update start
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
#SS220 fauna update end
- trigger:
!type:DamageTrigger
damage: 10
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
#SS220 fauna update start
- !type:SpawnEntitiesBehavior
spawn:
MaterialWebSugarSilk:
min: 1
max: 1
#SS220 fauna update end
- type: Temperature
heatDamage:
types:
Expand Down
61 changes: 51 additions & 10 deletions Resources/Prototypes/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
- id: SpiderClownSpawn
- id: SpiderSpawn
- id: VentClog
#SS220 Fauna update start
- id: SpaceCobraSpawn
#SS220 Fauna update end

- type: entityTable
id: BasicAntagEventsTable
Expand Down Expand Up @@ -398,12 +401,20 @@
duration: 60
- type: VentCrittersRule
entries:
#SS220 fauna update start. Each prob was 0.02 on wizden. Amount and max amout for SS220
- id: MobAdultSlimesBlueAngry
prob: 0.02
prob: 0.01
amount: 3
maxAmount: 3
- id: MobAdultSlimesGreenAngry
prob: 0.02
prob: 0.01
amount: 3
maxAmount: 3
- id: MobAdultSlimesYellowAngry
prob: 0.02
prob: 0.01
amount: 3
maxAmount: 3
#SS220 Fauna update end

- type: entity
id: SnakeSpawn
Expand All @@ -423,12 +434,34 @@
duration: 60
- type: VentCrittersRule
entries:
- id: MobPurpleSnake
prob: 0.02
- id: MobSmallPurpleSnake
prob: 0.02
- id: MobPurpleSnakeGhostRole #SS220 Fauna update
prob: 0.03
- id: MobSmallPurpleSnakeGhostRole #SS220 Fauna update
prob: 0.03
#SS220 Fauna update. Making this event just snakes.
#- id: MobCobraSpace
#prob: 0.02

#SS220 Fauna update start
- type: entity
id: SpaceCobraSpawn
parent: BaseStationEventShortDelay
components:
- type: StationEvent
startAnnouncement: station-event-vent-creatures-start-announcement
startAudio:
path: /Audio/SS220/Announcements/lifesigns.ogg
params:
volume: -4
earliestStart: 20
minimumPlayers: 15
weight: 5
duration: 60
- type: VentCrittersRule
entries:
- id: MobCobraSpace
prob: 0.02
prob: 0.06
#SS220 Fauna update end

- type: entity
id: SpiderSpawn
Expand All @@ -449,7 +482,11 @@
- type: VentCrittersRule
entries:
- id: MobGiantSpiderAngry
prob: 0.05
#SS220 Fauna update start. Offs prob is 0.05
prob: 0.025
amount: 3
maxAmount: 4
#SS220 Fauna update end.

- type: entity
id: SpiderClownSpawn
Expand All @@ -470,7 +507,11 @@
- type: VentCrittersRule
entries:
- id: MobClownSpider
prob: 0.05
#SS220 Fauna update start. Offs prob is 0.05
prob: 0.03
amount: 2
maxAmount: 2
#SS220 Fauna update end

- type: entity
id: ZombieOutbreak
Expand Down
Loading
Loading