Giter Club home page Giter Club logo

nomorericeworld's Introduction

No more rice world

Introduction

This is a mod for RimWorld Game. It aims to make food variety a necessity for both mental and physical health. When pawns eat food with different ingredients, their mood and performance improve. When pawns do not get enough food variety, the opposite happens: their mood and performance worsen. Pawns need a variety of nutrients to stay healthy and perform their best. These nutrients include proteins, carbohydrates, and vitamins.

Proteins are found in meat, animal products, and some plants.

Carbohydrates are the body's main source of energy.Carbohydrates can be found in plant foods like rice, corn and potatoes.

Vitamins are essential for many bodily functions, such as maintaining a healthy immune system, producing blood cells, and protecting against disease. Vitamins can be found in a variety of foods, including animal products and berries.

In addition to providing your pawns with the nutrients they need, it is also important to provide them with a variety of food. Pawns will not be happy if they are only ever given rice to eat. A mod has added a new need called "Food Variety," and to keep this need high, you should provide your pawns with different meals made from different ingredients.

You do not need to manually manage your pawns' nutritional needs. The food searching algorithm has been patched to search for food sources that satisfy their nutritional and food variety needs. You only need to provide your pawns with a variety of food sources. The food searching algorithm will then prioritize the food sources that provide the nutrients that your pawns need.

It is possible to modify the ThingDef (a data structure that defines a thing in RimWorld) to increase or decrease the amount of elements that is gained when consuming the thing:

<Operation Class="PatchOperationAddModExtension">
    <xpath>Defs/ThingDef[defName="RawFungus"]</xpath>
    <value>
        <li Class="NoMoreRiceWorld.ElementsDefModExtension">
            <Vitamines>0</Vitamines>
            <Carbohydrates>0.5</Carbohydrates>
            <Proteins>0.5</Proteins>
        </li>
    </value>
</Operation>

For more examples of how to patch ThingDef, see the file Patches/VanillaFoodPatches.xml.

nomorericeworld's People

Contributors

artur-shamigulov avatar awgv avatar

Watchers

 avatar

Forkers

awgv evyatar108

nomorericeworld's Issues

Возможно, где-то необходим null-чек для охотящихся хищников

Пока возился со значениями в игре — могу стабильно воспроизвести следующую ошибку (полный лог):

JobDriver threw exception in toil FinalizeIngest's initAction for pawn Bear_Grizzly7913 driver=JobDriver_PredatorHunt (toilIndex=5) driver.job=(PredatorHunt (Job_9918) A=Thing_Corpse_Squirrel10112)
System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.FoodUtility.GetMeatSourceCategoryFromCorpse (Verse.Thing thing) [0x00012] in <95de19971c5d40878d8742747904cdcd>:0 
  at RimWorld.FoodUtility.IsHumanlikeCorpseOrHumanlikeMeat (Verse.Thing source, Verse.ThingDef foodDef) [0x0000d] in <95de19971c5d40878d8742747904cdcd>:0 
  at NoMoreRiceWorld.Utils.GetNeedsAmount (Verse.Thing thing) [0x00029] in <2ceb6a0d8c46436b9fcd6e7ac53b228a>:0 
  at NoMoreRiceWorld.ThingsIngestedPatch.Postfix (Verse.Thing __instance, System.Single __result, Verse.Pawn& ingester, System.Single& nutritionWanted) [0x00008] in <2ceb6a0d8c46436b9fcd6e7ac53b228a>:0 
  at (wrapper dynamic-method) Verse.Thing.Verse.Thing.Ingested_Patch1(Verse.Thing,Verse.Pawn,single)
  at RimWorld.Toils_Ingest+<>c__DisplayClass13_0.<FinalizeIngest>b__0 () [0x001a4] in <95de19971c5d40878d8742747904cdcd>:0 
  at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001b0] in <95de19971c5d40878d8742747904cdcd>:0  
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Происходит каждый раз, когда хищник, и не только этот конкретный медведь, что-то доедает после охоты, по-моему, блюда тоже.


Дополняю: я проворонил, в Стиме уже кто-то писал о чём-то подобном, возможно, это связано.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.