rust added white chinese lanterns to the game, could you add those?
Support for the new white chinese lanterns
just add it. Go to ConsumeType StringToType
And replace it with:
private ConsumeType StringToType(string name)
{
switch (name)
{
case "campfire":
return ConsumeType.Campfire;
case "skull_fire_pit":
return ConsumeType.Firepit;
case "fireplace.deployed":
return ConsumeType.Fireplace;
case "furnace":
return ConsumeType.Furnace;
case "furnace.large":
return ConsumeType.LargeFurnace;
case "lantern.deployed":
return ConsumeType.Lanterns;
case "jackolantern.angry":
case "jackolantern.happy":
return ConsumeType.JackOLantern;
case "tunalight.deployed":
return ConsumeType.TunaLight;
case "searchlight.deployed":
return ConsumeType.Searchlight;
case "bbq.deployed":
return ConsumeType.BBQ;
case "refinery_small_deployed":
return ConsumeType.Refinery;
case "cursedcauldron.deployed":
return ConsumeType.CursedCauldren;
case "chineselantern.deployed":
return ConsumeType.ChineseLantern;
case "chineselantern_white.deployed":
return ConsumeType.ChineseLanternWhite;
default:
return ConsumeType.None;
}
}
go to private enum
replace with
private enum ConsumeType { BBQ, Campfire, CeilingLight, ChineseLantern, ChineseLanternWhite, CursedCauldren, Firepit, Fireplace, Furnace, LargeFurnace, Lanterns, JackOLantern, TunaLight, Searchlight, Refinery, None }
and add it to the config
},
"CursedCauldren": {
"This type is enabled": false,
"This type consumes fuel": true,
"This type can be toggled by the owner": true,
"This type requires permission to be toggled by the owner": true
},
"ChineseLantern": {
"This type is enabled": true,
"This type consumes fuel": false,
"This type can be toggled by the owner": true,
"This type requires permission to be toggled by the owner": true
},
"ChineseLanternWhite": {
"This type is enabled": true,
"This type consumes fuel": false,
"This type can be toggled by the owner": true,
"This type requires permission to be toggled by the owner": true
}
},