Skip to content

Commit

Permalink
PostReviewChanges
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwayswannahunt committed Dec 1, 2024
1 parent dd36f7e commit 7ce435d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
5 changes: 1 addition & 4 deletions Content.Server/SS220/MindSlave/MindSlaveSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void OnAccent(Entity<MindSlaveComponent> entity, ref BeforeAccentGetEven
var stopWord = entity.Comp.StopWord.ToLower();
var message = args.Message;
var index = message.ToLower().IndexOf(stopWord);
while (index != -1)
while (index != -1 && !string.IsNullOrEmpty(message))
{
message = message.Remove(index, stopWord.Length).Insert(index, Loc.GetString("mindslave-stop-word-replacement"));
index = message.ToLower().IndexOf(stopWord);
Expand Down Expand Up @@ -331,9 +331,6 @@ public bool TryRemoveSlave(EntityUid slave)
if (mindslaveImplant != null)
_implant.ForceRemove(slave, mindslaveImplant.Value);
}



return true;
}

Expand Down
2 changes: 1 addition & 1 deletion Content.Server/SS220/Text/MarkovTextGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void Initialize(IReadOnlyList<string> locPath, int keySize)

for (int i = 0; i < words.Length - keySize; i++)
{
var key = words.Skip(i).Take(keySize).Aggregate(Join);
var key = string.Join(' ', words, i, keySize);
var value = words[i + keySize];
AddToTransitionMatrix(key, value);
}
Expand Down
14 changes: 9 additions & 5 deletions Resources/Prototypes/SS220/Catalog/uplink_catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
cost:
Telecrystal: 10
categories:
- UplinkImplants
- UplinkImplants
conditions:
- !type:StoreWhitelistCondition
- !type:StoreWhitelistCondition
blacklist:
tags:
- NukeOpsUplink
- LoneOpsUplink
- NukeOpsUplink
- LoneOpsUplink

- type: listing
id: UplinkMindslaveSurgeryFixBundle
Expand All @@ -55,7 +55,11 @@
Telecrystal: 4
categories:
- UplinkImplants

conditions:
- !type:BuyerWhitelistCondition
blacklist:
components:
- SurplusBundle
# JobItems

- type: listing
Expand Down

0 comments on commit 7ce435d

Please sign in to comment.