CookieMilk-Rainbow_Troll_Armor_Generator_V2 icon

Rainbow Troll Armor Generator V2

Generate Troll Armor with different colors, stats.

Last updated 3 weeks ago
Total downloads 528
Total rating 2 
Categories Crafting
Dependency string CookieMilk-Rainbow_Troll_Armor_Generator_V2-1.1.0
Dependants 3 other mods depend on this mod

This mod requires the following mods to function

ASharpPen-This_Goes_Here-2.1.1 icon
ASharpPen-This_Goes_Here

Small mod for mod authors to run file operations in bepinex folders.

Preferred version: 2.1.1

README

// Uploaded with permission from Balrond @ ODIN Plus Team Discord //

Update 2.0.0

  • Absolutely reworked mod
  • Control over whole recipe
  • more control over armor stats
  • ServerSync (Thank you Blaxxun!)

Variables

  • recipe - recipe for the item
  • durability - how durable is the item
  • description - modify items description
  • enabled - is recipe for the item enabled
  • weight - wieght of item only in full kilos!
  • color - rgb values for new color (1- 255 range)
  • prefabName - name of PrefabFIle for new Item
  • armor - how much armor as base lvl 1 it will have
  • inGameName - ingame name that will be displayed
  • armorPerLevel - how much armor it will gain per level up
  • ratio - value from 0 to 100 - describe the notation of color
  • durabilityPerLevel - how much durability it will gain per level
  • maxLevel - max level of item (you can make it level up more then 4 times!)
  • speedMod - modify speed bonus INT - ex 120 equals to bonus 12% speed
  • resist - add RESISTANCE to item - only 1 type . value string name of damage type to resist!
  • sourcePrefabName - name of Source Prefab ( it needs to be 1 of 4 trollhide items others wont work)

Recipe Values

  • minStationLevel - int - min station level
  • enabled - bool true/false should recipe be enabled
  • res1 | res2 | res3 | res4 - resources for crafting anotation "PrefabName:Amount:AmountPerLevel:Recover" ex. "Wood:1:0:true"

All recipes are added to workbench.

Explanation

Default value is set to 50.
If ratio is set to 0 the item will be gray color no matter the input color.
If ratio is set to 100 the items will have the highest possible value of the input color.

Please always create new item using copy of existing ones to mitigate error of wrong source name as well as always double check the additionalMaterialName PREFABNAME = ITEM ID

Attention

If error happens and user still logs in to the world all new troll items will despawn from game.
If either name/ingameName/source/aditionalMaterialName are left empty mod wont work and create error.
If error happens but user sees it at the main menu before entering world then fix the config error and restart the game and no items will be lost.

Example Recipe

Recipes goes in BepInEx/plugins/RainbowTrollArmor/Configs

1 json file per 1 item!

{
    "prefabName":"CapeVoidTrollHide",
    "inGameName":"Void Troll Leather Cape",
    "sourcePrefabName":"CapeTrollHide",
    "description": "Super Void",
    "weight": 1,
    "speedMod": 120,
    "maxLevel":6,
    "armor" : 1,
    "armorPerLevel":1,
    "maxDurability":500,
    "durabilityPerLevel":50,
    "enabled":true,
    "resist" : "Physical",
    "ratio" :30,
    "color":
    {
    "r":127,
    "g":17,
    "b":107
    },
        "recipe":{
            "enabled": true,
            "minStationLevel": "3",
            "res1": "Wood:1:0:true",
            "res2": "",
            "res3": "",
            "res4": ""
        }  
}

Installation

Put the folder "RainbowTrollArmor" inside BepInEx/plugins on both server & client if you wish to have ServerSync enabled.
If the mod is put on a server, there's no need to put new recipes on client as all new recipes will be shared via server.

Future Plans

  • Ability to add your own icon
  • Ability to attach custom status effect
  • Ability to add your own texture for armor

Want to support me?
You can do so via PayPal by clicking HERE

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2022-6-6 1.1.0 139 Version 1.1.0 Install
2022-5-25 1.0.9 96 Version 1.0.9 Install
2022-5-24 1.0.8 24 Version 1.0.8 Install
2022-5-24 1.0.7 5 Version 1.0.7 Install
2022-5-23 1.0.6 5 Version 1.0.6 Install
2022-5-23 1.0.5 5 Version 1.0.5 Install
2022-5-8 1.0.4 108 Version 1.0.4 Install
2022-5-5 1.0.3 100 Version 1.0.3 Install
2022-5-5 1.0.2 11 Version 1.0.2 Install
2022-5-3 1.0.1 20 Version 1.0.1 Install
2022-5-3 1.0.0 15 Version 1.0.0 Install