Jump to content

GalloViking

Member
  • Posts

    2
  • Joined

  • Last visited

GalloViking's Achievements

  1. Heya folks, I'm at a loss here. I am trying to make a mod that adds "trading" recipes to buy and sell items with a ham radio. Problem is, I want to make it compatible with brita's for buying/selling their ammo and I don't know how to hide those recipes when the mod is not activated, through the use of Obsolete potentially. I know how to use getActivatedMods():contains("insertmodhere") but it only works in .lua, not .txt. An easy solution would be to make a patch for brita's weapons, but as I add more recipes for other mods, I'll end up with dozens of patches and I'd rather not.
  2. Hello survivors, I need some help. I've very recently started modding (yesterday, actually), and made a rather simple spear oriented profession. The profession works fine, and now I'm trying to give it a special trait that allows it to make crafted spears without changing durability on the knife used in the process. Searching through the files, I've found that knife durability reduction is done in Recipe.OnCreate.CreateSpear function, found in the recipecode.lua. How exactly can I edit this function to add a simple exception for my trait?
×
×
  • Create New...