Skip to content

EA 23.179 Nightly

August 14, 2025

10 files modified. 1 new file created.

Important Changes

None.

Affinity

public int GetLunchChance()

cs
				}
				return 10;
			}
			return 25; 
			return 40; 
		}
		return 50; 
		return 80; 
	}
	return 100;
}

Card

public Thing TryMakeRandomItem(int lv = -1)

cs
	case "_meat":
	case "meat_marble":
	case "dattamono":
	case "deadbody":
	{
		string text = "c_wilds";
		if (id == "_meat" || id == "meat_marble")

public Thing TryMakeRandomItem(int lv = -1)

cs
		}
		for (int i = 0; i < 20; i++)
		{
			CardRow cardRow = SpawnList.Get(text).Select(lv); 
			CardRow cardRow = SpawnList.Get(text).Select(lv + i); 
			if (cardRow.model.Chara.race.corpse[0] != "_meat" && id != "milk" && id != "_egg" && id != "egg_fertilized")
			{
				continue;

public Thing TryMakeRandomItem(int lv = -1)

cs
			{
				MakeFoodFrom(cardRow.model);
			}
			break; 
			return this as Thing; 
		}
		MakeFoodFrom(EClass.sources.charas.map.Values.Where((SourceChara.Row r) => r.chance > 0 && r.quality == 0).RandomItem().model); 
		break;
	}
	}

CraftUtil

public static void MakeDish(Thing food, int lv, Chara crafter = null)

cs
	int num = Mathf.Min(EClass.rnd(lv), 50);
	foreach (Recipe.Ingredient ingredient in recipeSource.GetIngredients())
	{
		Thing thing = ThingGen.Create(ingredient.id).TryMakeRandomItem(lv); 
		Thing thing = ThingGen.Create(ingredient.id, -1, lv); 
		if (thing.id == "deadbody") 
		{ 
			thing = ThingGen.Create("_meat"); 
		} 
		thing = thing.TryMakeRandomItem(lv); 
		TraitSeed.LevelSeed(thing, null, EClass.rnd(lv / 4) + 1);
		thing.SetEncLv(thing.encLV / 2);
		if (num > 0 && EClass.rnd(3) == 0)

FactionBranch

void GetOutcome(Hobby h)

cs
			{
				string text = h.source.things[j];
				int num5 = Mathf.Max(1, h.source.things[j + 1].ToInt() * num3 / 1000);
				Debug.Log(i.Name + "/" + num3 + "/" + num5); 
				int num6 = num5 / 1000;
				if (num5 % 1000 > EClass.rnd(1000))
				{

FoodEffect

``

cs

public class FoodEffect : EClass
{
	public static bool IsLeftoverable(Thing food) 
	{ 
		return food.trait is TraitLunch; 
	} 
	public static void Proc(Chara c, Thing food, bool consume = true)
	{
		food.CheckJustCooked();

public static void Proc(Chara c, Thing food, bool consume = true)

cs
	bool flag3 = food.HasElement(709);
	bool flag4 = c.HasElement(1205);
	bool flag5 = food.IsDecayed || flag3;
	bool flag6 = food.trait is TraitLunchLove; 
	bool flag6 = IsLeftoverable(food); 
	c.AddFoodHistory(food);
	if (c.IsPCFaction && !c.IsPC)
	{

Hobby

using System;

cs
using System;
using UnityEngine; 

public class Hobby : EClass
{

public int GetLv(Chara c)

cs
	{
		if (!source.skill.IsEmpty())
		{
			return c.Evalue(source.skill); 
			return Mathf.Min(c.Evalue(source.skill), 100000); 
		}
		return c.LV; 
		return Mathf.Min(c.LV, 100000); 
	}

	public int GetEfficiency(Chara c)

LayerSleep

public void Advance()

cs
			if (chara.affinity.GetLunchChance() > ELayer.rnd(100) && chara.GetInt(71) == -1)
			{
				chara.SetInt(71, -2);
				if (!chara.elements.Has(287)) 
				{ 
					chara.elements.Learn(287); 
				} 
				for (int i = 0; i < 5; i++) 
				{ 
					chara.elements.ModExp(287, 2000f); 
				} 
			}
		}
		foreach (Chara member in ELayer.pc.party.members)

Thing

public override void WriteNote(UINote n, Action<UINote> onWriteNote = null, IIns

cs
	{
		AddText("isNoMix", FontColor.Default);
	}
	if (trait is TraitFoodFishSlice) 
	{ 
		AddText("isNoProcessIng", FontColor.Default); 
	} 
	if (!trait.CanBeDestroyed)
	{
		AddText("isIndestructable", FontColor.Default);

public override void WriteNote(UINote n, Action<UINote> onWriteNote = null, IIns

cs
	{
		AddText("isThrowWeaponEnemy", FontColor.Default);
	}
	if (trait is TraitFoodFishSlice) 
	{ 
		AddText("isNoProcessIng", FontColor.Default); 
	} 
	if (HasElement(10))
	{
		AddText("isEdible", FontColor.Default);
	}
	if (FoodEffect.IsLeftoverable(this)) 
	{ 
		AddText("isLeftoverable", FontColor.Default); 
	} 
	if (HasTag(CTAG.rareResource))
	{
		AddText("isRareResource", FontColor.Great);

Trait

public void OnBarter()

cs
			{
			case ShopType.Moyer:
			{
				for (int num10 = 1; num10 <= 6; num10++) 
				for (int num10 = 1; num10 <= 7; num10++) 
				{
					AddAdvWeek(num10);
				}

+TraitLunch

File Created
cs
public class TraitLunch : TraitMixedFood
{
}

TraitLunchLove

public class TraitLunchLove : TraitMixedFood

cs
public class TraitLunchLove : TraitMixedFood
public class TraitLunchLove : TraitLunch
{
}