Skip to content

Commit

Permalink
strict (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheackraze authored Oct 25, 2023
1 parent 359f382 commit 7adcb1a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Content.Server/Botany/Systems/MutationSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void MutateSeed(ref SeedData seed, float severity)
// Fun (90)
MutateBool(ref seed.Seedless , true , 10, totalbits, severity);
MutateBool(ref seed.Slip , true , 10, totalbits, severity);
//MutateBool(ref seed.Sentient , true , 10, totalbits, severity);
MutateBool(ref seed.Sentient , true , 10, totalbits, severity);
MutateBool(ref seed.Ligneous , true , 10, totalbits, severity);
//MutateBool(ref seed.Bioluminescent, true , 10, totalbits, severity);
MutateBool(ref seed.TurnIntoKudzu , true , 10, totalbits, severity);
Expand Down
10 changes: 8 additions & 2 deletions Content.Server/Shipyard/Systems/ShipyardSystem.Consoles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
using Content.Server.UserInterface;
using Content.Shared.StationRecords;
using Content.Server.Chat.Systems;
using Content.Server.Mind;
using Content.Server.StationRecords.Systems;
using Content.Shared.Database;
using Content.Server.Station.Components;
Expand All @@ -45,6 +46,7 @@ public sealed partial class ShipyardSystem : SharedShipyardSystem
[Dependency] private readonly StationRecordsSystem _records = default!;
[Dependency] private readonly ChatSystem _chat = default!;
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
[Dependency] private readonly MindSystem _mind = default!;

public void InitializeConsole()
{
Expand Down Expand Up @@ -375,8 +377,12 @@ public bool FoundOrganics(EntityUid uid, EntityQuery<MobStateComponent> mobQuery

while (childEnumerator.MoveNext(out var child))
{
if (mobQuery.TryGetComponent(child.Value, out var mobState) && !_mobState.IsDead(child.Value, mobState)
|| FoundOrganics(child.Value, mobQuery, xformQuery)) return true;
if (mobQuery.TryGetComponent(child.Value, out var mobState)
&& !_mobState.IsDead(child.Value, mobState)
&& _mind.TryGetMind(child.Value, out var mind, out var mindComp)
&& !_mind.IsCharacterDeadIc(mindComp)
|| FoundOrganics(child.Value, mobQuery, xformQuery))
return true;
}

return false;
Expand Down
22 changes: 11 additions & 11 deletions Resources/Prototypes/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,17 +207,17 @@
# maxDuration: 120
# - type: PowerGridCheckRule

# - type: entity
# id: RandomSentience
# parent: BaseGameRule
# noSpawn: true
# components:
# - type: StationEvent
# weight: 10
# duration: 1
# startAudio:
# path: /Audio/Announcements/attention.ogg
# - type: RandomSentienceRule
- type: entity
id: RandomSentience
parent: BaseGameRule
noSpawn: true
components:
- type: StationEvent
weight: 10
duration: 1
startAudio:
path: /Audio/Announcements/attention.ogg
- type: RandomSentienceRule

- type: entity
parent: BaseGameRule
Expand Down

0 comments on commit 7adcb1a

Please sign in to comment.