Фиксы для мастера (#159)

* mangleness adjustment

* stable

* empty fix

* перебаламс

* Обнова описаний

* stable

* Голо работабт как надо

* fix

* Fix fax

* Update medicine.yml

* Update blood_magic.yml

* Update humanoid.yml

* Update medicine.yml

* Update ghost_roles.yml

* Update mechs.yml

* Update toxins.yml

* Fish comments

* F

* Update hypospray.yml

* Update hypospray.yml

* Update hypospray.yml

* фикс мозгов

* истощение!!!

* Обнова наборов медиков ОБР и ЯО

* фиксы мастера

* исправление названий веществ культа плоти, также откат рецептов против вейпа/кальяна

* Корректировка пудры, лечит больше бики, но медленней + защищает от ран
This commit is contained in:
A-Mironov 2025-12-19 18:47:12 +03:00 committed by GitHub
parent 885bd26937
commit e2def4e766
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 58 additions and 32 deletions

View file

@ -104,6 +104,9 @@ public sealed partial class FleshCultSystem
private void HandleDeadState(EntityUid uid, FleshCultistComponent component)
{
if (component.IsDeathPending) // Fish-Edit
return;
DeleteFleshBodyModComponent(uid, "shoes", component);
DeleteFleshBodyModComponent(uid, "outerClothing", component);
ParasiteComesOut(uid, component);
@ -294,6 +297,11 @@ public sealed partial class FleshCultSystem
if (!Resolve(uid, ref component))
return false;
if (component.IsDeathPending) // Fish-Edit
return false;
component.IsDeathPending = true; // Fish-Edit
var coordinates = Transform(uid).Coordinates;
var abommob = Spawn(component.FleshMutationMobId, _transformSystem.GetMapCoordinates(uid));
@ -308,7 +316,8 @@ public sealed partial class FleshCultSystem
{
foreach (var cont in container.GetAllContainers().ToArray())
{
foreach (var entity in cont.ContainedEntities.Where(entity => !HasComp<BodyPartComponent>(entity) && !HasComp<UnremoveableComponent>(entity)))
// foreach (var entity in cont.ContainedEntities.Where(entity => !HasComp<BodyPartComponent>(entity) && !HasComp<UnremoveableComponent>(entity)))
foreach (var entity in cont.ContainedEntities.Where(entity => !HasComp<BodyPartComponent>(entity) && !HasComp<UnremoveableComponent>(entity)).ToList()) // Fish-Edit
{
_containerSystem.Remove(entity, cont, force: true);
Transform(entity).Coordinates = coordinates;
@ -335,8 +344,14 @@ public sealed partial class FleshCultSystem
public void UpdateCultist(float frameTime)
{
base.Update(frameTime);
foreach (var cultist in EntityQuery<FleshCultistComponent>())
// foreach (var cultist in EntityQuery<FleshCultistComponent>())
var query = EntityQueryEnumerator<FleshCultistComponent>(); // Fish-Edit
while (query.MoveNext(out var uid, out var cultist)) // Fish-Edit
{
if (cultist.IsDeathPending) // Fish-Edit
continue;
cultist.Accumulator += frameTime;
if (cultist.Accumulator <= 1)
continue;
@ -348,14 +363,19 @@ public sealed partial class FleshCultSystem
if (cultist.AccumulatorStarveNotify > 30)
{
cultist.AccumulatorStarveNotify = 0;
_popup.PopupEntity(Loc.GetString("flesh-cultist-hungry"), cultist.Owner, cultist.Owner, PopupType.Large);
_popup.PopupEntity(Loc.GetString("flesh-cultist-hungry"), uid, uid, PopupType.Large);
}
}
if (cultist.Hunger < 0)
ParasiteComesOut(cultist.Owner, cultist);
{
// ParasiteComesOut(cultist.Owner, cultist);
ParasiteComesOut(uid, cultist); // Fish-Edit
continue; // Fish-Edit
}
ChangeParasiteHunger(cultist.Owner, cultist.HungerСonsumption, cultist);
// ChangeParasiteHunger(cultist.Owner, cultist.HungerСonsumption, cultist);
ChangeParasiteHunger(uid, cultist.HungerСonsumption, cultist); // Fish-Edit
}
}
}

View file

@ -354,8 +354,8 @@ public sealed partial class CCVars
/// The prototype to use for secret weights.
/// </summary>
public static readonly CVarDef<string> SecretWeightPrototype =
CVarDef.Create("game.secret_weight_prototype", "SunriseSecret", CVar.SERVERONLY); // Sunrise-Edit
//CVarDef.Create("game.secret_weight_prototype", "SunriseSecret", CVar.SERVERONLY); // Sunrise-Edit
CVarDef.Create("game.secret_weight_prototype", "FishSecret", CVar.SERVERONLY); // Fish-Edit
/// <summary>
/// The id of the sound collection to randomly choose a sound from and play when the round ends.
/// </summary>

View file

@ -48,4 +48,10 @@ public sealed partial class FleshCultistComponent : Component
[DataField]
public SoundSpecifier SoundMutation = new SoundPathSpecifier("/Audio/_Sunrise/FleshCult/flesh_cultist_mutation.ogg");
/// <summary>
/// Flag to indicate that the entity is already in the process of dying/gibbing.
/// </summary>
[ViewVariables]
public bool IsDeathPending = false; // Fish-Edit
}

View file

@ -1,5 +1,5 @@
# Fish-edit - FleshCult reagent localizations
reagent-name-carol = Карол
reagent-name-carol = карол
reagent-desc-carol = ??????
reagent-name-flesh-acid = Кислота Плоти
reagent-name-flesh-acid = кислота плоти
reagent-desc-flesh-acid = ??????

View file

@ -275,7 +275,7 @@
types:
Asphyxiation: -1
Bloodloss: -0.5
Mangleness: 0.1 #Fish-Edit: boosted by 2x (was 0.05)
Mangleness: 0.015 #Fish-Edit: 1/100 of healing amount (was 0.1)
- !type:HealthChange
conditions:
- !type:ReagentThreshold
@ -301,7 +301,7 @@
types:
Asphyxiation: -3.5
Bloodloss: -3
Mangleness: 0.35 #Fish-Edit: boosted by 2x (was 0.175)
Mangleness: 0.065 #Fish-Edit: 1/100 of healing amount (was 0.35)
- !type:AdjustReagent
conditions:
- !type:ReagentThreshold

View file

@ -19,7 +19,7 @@
- !type:HealthChange
conditions:
- !type:ReagentThreshold
min: 20 # Fish-edit
min: 30
damage:
types:
Poison: 2 # this is added to the base damage of the meth.

View file

@ -14,11 +14,11 @@
amount: -4 #Fish-Edit
- !type:EvenHealthChange #Fish-Edit
damage:
Brute: -2
Brute: -1
- !type:HealthChange
damage:
types:
Mangleness: 0.2
Mangleness: 0.1
- !type:HealthChange
conditions:
- !type:ReagentThreshold

View file

@ -1,19 +1,19 @@
- type: reaction # Fish-edit
id: FleshAcidFluorosurfactant
reactants:
Carol:
amount: 1
Fluorosurfactant:
amount: 1
products:
FleshAcid: 2
#- type: reaction # Fish-edit
# id: FleshAcidFluorosurfactant
# reactants:
# Carol:
# amount: 1
# Fluorosurfactant:
# amount: 1
# products:
# FleshAcid: 2
- type: reaction # Fish-edit
id: FleshAcidFoamingAgent
reactants:
Carol:
amount: 1
FoamingAgent:
amount: 1
products:
FleshAcid: 2
#- type: reaction # Fish-edit
# id: FleshAcidFoamingAgent
# reactants:
# Carol:
# amount: 1
# FoamingAgent:
# amount: 1
# products:
# FleshAcid: 2