RimWorld

RimWorld

Drugs are not Food
74 Comments
glutamate 2 Dec, 2024 @ 7:08am 
seems conflict with Vanilla cooking expanded
czpetr  [author] 21 Mar, 2024 @ 1:36pm 
@blockermocker This mod modifies only ambrosia and beer, so sadly, the answer is no.
wild bard 25 Feb, 2024 @ 7:36am 
does with work with vanilla-expanded insectoids? i dont want my dogs going high on royal jelly
Diluted Contractions 22 Oct, 2023 @ 7:59am 
Chick 33 has developed a health condition:

Chemical damage

This was caused by:

Alcohol (blackout, 141h)
brucethemoose 24 Mar, 2022 @ 10:39am 
FYI this patch removes nutrition from some drugs that should have nutrition, like Vanilla Expanded desserts or royal insect jelly.


This also manifests as startup errors like "Config error in VBE_FineCocktail: Nutrition == 0 but preferability is Undefined instead of NeverForNutrition"
Mlie 18 Oct, 2021 @ 12:08pm 
Made an update of this, the should work on all drugs:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2631474117
Hope it helps anyone!
Cream of Botulism Soup 9 Sep, 2021 @ 10:20pm 
Hope this works with 1.3 I don't see any alternatives, just had a German Shepard puppy decide it would be a good idea to eat a bunch of go juice SMH.
battlemad 6 Sep, 2021 @ 9:03am 
Sure does work in 1.3, needs an extension to more mods. nice if a github existed, maybe it does and there is no link. regardless i have not seen specific messages/warnings for this mod. who knows the mod may not be working at all?
Thundercraft 18 Aug, 2021 @ 8:59pm 
Can anyone tell me if this works in 1.3 (ignoring the usual warnings)?
hoia 21 Jul, 2021 @ 12:55pm 
Alright, thank you very much!
czpetr  [author] 21 Jul, 2021 @ 12:45pm 
I will update it when I find time :)


The mod will most likely work, it will just throw warning. Can't say for sure through.
hoia 21 Jul, 2021 @ 10:09am 
Hi, are you planning to update this mod to 1.3, now that the DLC is out? :)
It is very useful.
MadMarblez 23 Jun, 2021 @ 5:42pm 
The entire fate of humanity is in danger without drunk chicks.
kmcl11 14 Jun, 2021 @ 2:16am 
i also really like this idea and hope a vanilla expanded patch could happen :)
Ivanik 12 May, 2021 @ 3:58am 
best mod, once a friendly colony sent me a caravan and their muffalo just got stuck on the map i guess it was already out of hunger when they departed and it was already drinking my shit, it was winter so there was no grass and he was near my storage room (wich is where i store my beer), then it just started going through all off my beer even tho it didn't give him any food, had to put him down and lose relation with his faction
F1tgal911 17 Mar, 2021 @ 3:29am 
@gis_extra
+1
Fiur 14 Dec, 2020 @ 8:55am 
I just had to install this since my guiniea pigs went to my drug compartment. ._.
gis_extra 6 Dec, 2020 @ 3:07pm 
Could you make a patch or add the same nutrition value removal to Vanilla Expanded alcohol like vodka, whiskey, gin, etc.? I just noticed that my rottweilers are getting smashed. lol Thanks if possible.
Dredphyre 29 Nov, 2020 @ 1:27pm 
Thank you for this! It's a really stupid flaw in the game which makes it possible for animals to open up a bottle of beer. On a very stressful mission, I just had my alpaca pack animal drink all the beer meant to calm my pawns. There are maddening things about the game that make sense, and then there is animals open bottles.
Windows XP 24 Nov, 2020 @ 10:50am 
Is there a mod that does the opposite of this? I want to add a small nutrition to yayo and stuff so that cats will eat it (unless you hide it from them in a restricted room). Because if there isn't a mod like this already, I might make one.
Bud 7 Nov, 2020 @ 10:52am 
sorry i had to split it up. from start to end
Bud 7 Nov, 2020 @ 10:52am 
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Conditional:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Tagger:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Conditional:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.Pawn_JobTracker:DetermineNextJob(ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch1(Pawn_JobTracker, JobCondition, Boolean, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick()
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
Bud 7 Nov, 2020 @ 10:51am 
at RimWorld.JobGiver_GetJoy.TryGiveJobFromJoyGiverDefDirect (RimWorld.JoyGiverDef def, Verse.Pawn pawn) [0x00006] in <d72310b4d8f64d25aee502792b58549f>:0
at (wrapper dynamic-method) RimWorld.JobGiver_GetJoy.RimWorld.JobGiver_GetJoy.TryGiveJob_Patch1(RimWorld.JobGiver_GetJoy,Verse.Pawn)
at RimWorld.JobGiver_IdleJoy.TryGiveJob (Verse.Pawn pawn) [0x00034] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <d72310b4d8f64d25aee502792b58549f>:0
Verse.Log:Error(String, Boolean)
Bud 7 Nov, 2020 @ 10:51am 
Exception in RimWorld.ThinkNode_ConditionalNeedPercentageAbove TryIssueJobPackage: System.ArgumentException: Value does not fall within the expected range.
at RimWorld.DrugPolicy.get_Item (Verse.ThingDef drugDef) [0x00037] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.DrugAIUtility.IngestAndTakeToInventoryJob (Verse.Thing drug, Verse.Pawn pawn, System.Int32 maxNumToCarry) [0x00055] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.JoyGiver_TakeDrug.CreateIngestJob (Verse.Thing ingestible, Verse.Pawn pawn) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
Bud 7 Nov, 2020 @ 10:49am 
i am experiencing the bug above, i think it may be this mod because this is the only mod i have that affects drugs.
GamerBossHarmon 18 Aug, 2020 @ 12:07pm 
ok
czpetr  [author] 17 Aug, 2020 @ 6:12am 
This mod has been updated to 1.2. Compatibility with previous version was preserved.

Let me know if you encounter any bugs.
GothAlice 10 Aug, 2020 @ 8:28am 
The Tallest: "… you made the fires worse!"
Zim: "Worse… or better ?" 👹

I'm torn on this. On one hand, it makes sense for reasons enumerated in other comments. On the other, literally every mammalian species I have encountered, and even a number that aren't even mammalian (such as birds), thoroughly enjoy getting drunk or otherwise intoxicated in the real world. (Watching lions, elephants, and bok blissing out next to an over-ripe fruit tree gives me hope for living creatures.)

It's also an explicit harvesting strategy I make use of during winter. [decwap8ztgrry.cloudfront.net] As a stop-gap, I'm using Hospitality with regions defined such that guests can not reach / do not have permission to access the ambrosia stockpiles in my pub, only the "excess" area for overflow sales, and colonist food restrictions to make sure they don't chow down on the source material for my Ambrandy.
WhiteWolf 19 Jun, 2020 @ 1:44pm 
Great mod. Saves me a lot of issues.
Any chance you update it for Chocolate(vanilla drug)?
Tokido Saya 27 May, 2020 @ 8:29am 
any chance for other mod support?i mean all drugs like Dr@g0n said
Wart1n1 6 May, 2020 @ 9:50am 
Thanks for the mod. I don't care too much about the animals, there are ways to deal with them, but I'm tired of prisoners on "No food" being given ambrosia…
F1tgal911 28 Apr, 2020 @ 12:58pm 
Pls add the alcoholic beverages from VG Garden Drinks too. My animals keep getting alcoholics all the time by drinking them wine...
KenU 9 Apr, 2020 @ 1:42pm 
Great mod! Would it also be possible to remove the nutrition value of smokeleaf, psychoid leaves and hops? My animal trainers keep using these to train animals when they should be using hay and kibble.
Zephyr 29 Mar, 2020 @ 12:24am 
In see beer with circle slash, I subscribe, YA LIL' SHITS CAN STOP POPPIN ME FOOKIN BOTTELS NOW YA LIL' SHITES! WHERE TH' 'ELL'd YA GET A BOTTLE OPENER ANYWAYS?!?! YE DON'T HAVE THUMBS!!!!!!
Kitty 24 Mar, 2020 @ 9:42pm 
if you could add the sugar syrup from VG Drinks to your mod, I'd be grateful. My animals keep going into sugar comas, which makes them somewhat useless as haulers. =/
Nishe 20 Mar, 2020 @ 8:51am 
@czpetr I'm not sure if they still do, but I know for a fact they used to at least take luciferium. I've never seen them take flake or yayo. I wouldn't have thought an animal would be capable of that since it requires smoking/snorting rather than eating.
Dr@g0n 19 Mar, 2020 @ 11:32am 
If i figure it out I will make all drugs, those from the billion mods I have as well all booze unedible. Found a cool mod for feeding drugs to animals so I am waiting on that modder to see what they do and if it might work right with animal tab and restrictions therefor negating this mod, no offense. this has been a huge blessing
czpetr  [author] 19 Mar, 2020 @ 7:39am 
@Ishca

No, this mod only changes ambrosia and beer. Animals should't eat drugs like flake in vanilla, at least I have never seen that.
LadyIshca TTV 19 Mar, 2020 @ 6:47am 
Is this mod supposed to prevent animals from consuming flake and other drugs too? Because if so, it might not be working entirely. My dog just got high and overdosed on flake with this mod running.
Dr@g0n 17 Mar, 2020 @ 9:37am 
thanks
czpetr  [author] 15 Mar, 2020 @ 3:04pm 
Alternatively you can just remove nutrition directly from the mod file (if downloaded manually), or move mod from workshop download location to rimworld mod folder and modify it there. It is probably faster in this case, however patchoperations are the way to go for modifying game files and for compatibility.
czpetr  [author] 15 Mar, 2020 @ 2:39pm 
You can also use Patchoperation to add or remove something, It would look like this:

<Operation Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName = "Beer"]/label</xpath>
<value>
<label>czechbeeristhebest</label>
</value>
</Operation>

Just and example how replacing label (name shown in-game) works, it would change "beer" to "czechbeeristhebest".

I would give you more detailed answer on this, but I am too tired today. If you have questions through feel free to ask, I will answer you tommorow if i'll know. Good luck.
czpetr  [author] 15 Mar, 2020 @ 2:33pm 
@Dr@g0n

Hello, this mod patches the nutrition value out of ambrosia and beer. It looks like this:

<Operation Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName = "Beer"]/statBases/Nutrition</xpath>

</Operation>

So how it works: PatchOperationRemove is patching operation that removes something from Def you want. Xpath is the way to the target.

PatchOperation finds "Beer" (replace it with defname of drug you want to modify, can be found in the files of the mod you want to modify).

There it looks like this: (removed unnecessary text, it will be bigger in the files, but I don't want to paste it all there)

https://justpaste.it/4oc7h

Then it goes according to the path we set, and removes the last part, in this case, <Nutrition>0.08</Nutrition>

<xpath>/Defs/ThingDef[defName = "Beer"]/statBases/Nutrition</xpath>
Dr@g0n 15 Mar, 2020 @ 1:38pm 
hey how does this mod work i am trying to figure out how to make a alcohol from another mod non-nutritious. I have yet to try my hand at this but I am tired of losing my hard earned cateye bery juice(orrasian mod) to my animals and prisoners.

great mod by and by. I always felt when I drink I just fool myself into feeling not hungry like with coffee for me as well.
czpetr  [author] 27 Feb, 2020 @ 4:14am 
This mod has been updated to 1.1. Compatibility with version 1.0 was preserved.

Let me know if you find any bugs.
czpetr  [author] 24 Feb, 2020 @ 5:55am 
I'll probably update it tomorrow. You can try if it works until then, should't cause any problems aside from version error.
El Grasón 23 Feb, 2020 @ 9:35pm 
Is this going to be updated to 1.1?
GamerBossHarmon 25 Jul, 2019 @ 2:11pm 
did not think that
Panto Ocelot 7 Jul, 2019 @ 5:59pm 
This is also effective for humans who are in the pigging out state. They might not always target food and may target alcohol, simply because it has a bit of nutrition like Pemmican.
GamerBossHarmon 13 Jun, 2019 @ 6:49pm 
just one thing to add the way i keep my animals from drink or eatting my food is i do not allow them were i keep all my food and i do the same with my crops so they will not eat them