From 9f2694178d606be24011f182622f98b31b107a9d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 21 Dec 2023 17:34:40 +0100 Subject: [PATCH] use collection expressions in whole project --- ExampleMod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExampleMod.cs b/ExampleMod.cs index af65dc6..f789925 100644 --- a/ExampleMod.cs +++ b/ExampleMod.cs @@ -116,7 +116,7 @@ public class ExampleMod : Mod { // we allow the action to be done even if the solved needs aren't low enough on a person CanDoRandomly = true, // the solved needs indicate when the AI should mark this action as important, they don't actually have to match the action's behavior - SolvedNeeds = new[] {NeedType.Energy}, + SolvedNeeds = [NeedType.Energy], // make people more likely to sit down in the grass if they're uncomfortable PassivePriority = p => p.Emotion == EmotionType.Uncomfortable ? 150 : 25 },