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

Cult hotfix 2 #2434

Merged
merged 11 commits into from
Dec 30, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Content.Server.SS220.GameTicking.Rules.Components;
using Content.Server.Station.Systems;
using Content.Server.SS220.CultYogg.Sacraficials;
using Content.Server.SS220.CultYogg.Nyarlathotep;
using Content.Server.RoundEnd;
using Content.Server.Zombies;
using Content.Shared.Audio;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public sealed class SharedCultYoggCorruptedSystem : EntitySystem
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly SharedSoftDeleteSystem _softDeleteSystem = default!;

private readonly TimeSpan _corruptionDuration = TimeSpan.FromSeconds(2);
private readonly TimeSpan _corruptionDuration = TimeSpan.FromSeconds(1.8);
private readonly Dictionary<ProtoId<EntityPrototype>, CultYoggCorruptedPrototype> _recipesBySourcePrototypeId = [];
private readonly Dictionary<ProtoId<StackPrototype>, CultYoggCorruptedPrototype> _recipesBySourceStackType = [];
private readonly Dictionary<ProtoId<EntityPrototype>, CultYoggCorruptedPrototype> _recipiesByParentPrototypeId = [];
Expand Down Expand Up @@ -145,7 +145,7 @@ public bool TryCorruptContinuously(EntityUid user, EntityUid entity, bool isInHa
return false;
}
var e = new CultYoggCorruptDoAfterEvent(recipe, isInHand, callback);
var doafterArgs = new DoAfterArgs(EntityManager, user, _corruptionDuration, e, user, entity) //ToDo estimate time for corruption
var doafterArgs = new DoAfterArgs(EntityManager, user, _corruptionDuration, e, user, entity)
{
Broadcast = false,
BreakOnDamage = true,
Expand Down
11 changes: 4 additions & 7 deletions Content.Shared/SS220/CultYogg/MiGo/SharedMiGoSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
using Content.Shared.Verbs;
using Robust.Shared.Utility;
using Content.Shared.Mobs.Components;

using Robust.Shared.Audio;

namespace Content.Shared.SS220.CultYogg.MiGo;

Expand All @@ -58,9 +58,6 @@ public abstract class SharedMiGoSystem : EntitySystem
[Dependency] private readonly IPrototypeManager _proto = default!;
[Dependency] private readonly SharedMindSystem _mind = default!;


//[Dependency] private readonly CultYoggRuleSystem _cultYoggRule = default!; //maybe use this for enslavement

public override void Initialize()
{
base.Initialize();
Expand Down Expand Up @@ -319,7 +316,7 @@ public override void Update(float delta)
ChangeForm(uid, comp, true);
if (!comp.AudioPlayed)
{
_audio.PlayPredicted(comp.SoundMaterialize, uid, uid);
_audio.PlayPredicted(comp.SoundMaterialize, uid, uid, AudioParams.Default.WithMaxDistance(0.5f));
comp.AudioPlayed = true;
}
_actions.StartUseDelay(comp.MiGoAstralActionEntity);
Expand Down Expand Up @@ -358,7 +355,7 @@ private void MiGoAstral(Entity<MiGoComponent> uid, ref MiGoAstralEvent args)
var started = _doAfter.TryStartDoAfter(doafterArgs);
if (started)
{
_audio.PlayPredicted(uid.Comp.SoundDeMaterialize, uid, uid);
_audio.PlayPredicted(uid.Comp.SoundDeMaterialize, uid, uid, AudioParams.Default.WithMaxDistance(0.5f));
}
}
}
Expand All @@ -367,7 +364,7 @@ private void OnAfterMaterialize(Entity<MiGoComponent> uid, ref AfterMaterialize
args.Handled = true;

_physics.SetBodyType(uid, BodyType.KinematicController);
_audio.PlayPredicted(uid.Comp.SoundMaterialize, uid, uid);
_audio.PlayPredicted(uid.Comp.SoundMaterialize, uid, uid, AudioParams.Default.WithMaxDistance(0.5f));

if (!args.Cancelled)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ent-FoodNullificationShroomCult = Нулевой гриб
ent-NullificationShroomSeeds = пакет спор (Нулевой гриб)
.desc = Семена странного типа, использующиеся в основном для травли насекомых.
ent-FoodSidiousShroomCult = Сидиус гриб
.desc = Ktutylfhysq
.desc = Невероятно питательный и водянистыый, но до ужаса отторгающий, любого не подготовленного гурмана.
ent-SidiousShroomSeeds = пакет спор (Сидиус гриб)
.desc = Семена, использующиеся для выращивания невероятно питательных грибов
ent-HolyWaterJug = кувшин святой воды
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ent-ActionCultYoggCorruptItem = Преобразовать предмет через прикосновение
.desc = Исказить предмет даровав ему форму заложенную создателем.
ent-ActionCultYoggCorruptItemInHand = Преобразовать предмет в руках
.desc = Исказить предмет даровав ему форму заложенную создателем.
.desc = Исказить предмет у вас в руках даровав ему форму заложенную создателем.
ent-ActionCultYoggPukeShroom = Извергнуть
.desc = Извергнуть выращенный в желудке гриб.
ent-ActionCultYoggDigest = Микоз
Expand All @@ -17,4 +17,4 @@ ent-ActionMiGoAstral = Выход в астрал
ent-ActionMiGoErect = Воздвигнуть
.desc = Воплотите основание великих алтарей.
ent-ActionMiGoSacrifice = Призыв
.desc = Соберитесь с другими Ми-Го у алтаря, чтобы принести жертву.
.desc = Исполните обряд над закрепленной на алтаре жертвой.
2 changes: 1 addition & 1 deletion Resources/Locale/ru-RU/ss220/prototypes/roles/antags.ftl
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
roles-antag-cult-yogg-name = Культ Йог-Сотот
roles-antag-cult-yogg-name = Культист Йог-Сотот
roles-antag-cult-yogg-objective = Вы преданный член культа. Завербуйте как можно больше последователей. Совершите обряд призыва своего хозяина.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
telepathyChannelPrototype: TelepathyChannelYoggSothothCult
- type: RandomMetadata
nameSegments: [ cult_yogg_migo ]
- type: Speech
speechVerb: LargeMob
- type: TTS
voice: forester
- type: UserInterface
Expand All @@ -53,6 +55,8 @@
#situational for logic
- type: NoSlip
- type: Insulated
- type: FlashImmunity
- type: IgnoreOnfloorSlowers
#visual
- type: Sprite
drawdepth: Mobs
Expand Down Expand Up @@ -101,6 +105,10 @@
- !type:GibBehavior { }
- type: Stamina
critThreshold: 200
- type: Temperature
heatDamageThreshold: 360
coldDamageThreshold: -150
currentTemperature: 310.15
- type: Tag
tags:
- CannotSuicide
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
- type: Gun
soundGunshot: /Audio/SS220/Weapons/Guns/CultYogg/spitballer_shot.ogg
soundEmpty: null
fireRate: 20
projectileSpeed: 5
fireRate: 13
projectileSpeed: 9
- type: BasicEntityAmmoProvider
proto: SpitballerGunBullet
capacity: 1
Expand All @@ -26,11 +26,6 @@
- type: Appearance
- type: Item
size: Ginormous
- type: IncreaseDamageOnWield
damage:
types:
Brute: 30
Stamina: 80
- type: GenericVisualizer
visuals:
enum.AmmoVisuals.HasAmmo:
Expand Down Expand Up @@ -72,9 +67,9 @@
- type: ExplodeOnTrigger
- type: Explosive
explosionType: Default
totalIntensity: 30
totalIntensity: 28
intensitySlope: 3
maxIntensity: 3.7
maxIntensity: 4
canCreateVacuum: false
- type: Tag
tags:
Expand Down
Loading