Search the Community
Showing results for tags 'modmain'.
Found 2 results
hi there~ i hope someone can shed some light in this matter it's a simple error, i understand that.... it literally SAYS Where the error is.... and What is the error, but............ seriously, the line it's pointing to, looks JUST the same as all the other lines. each one has both brackets like the image, just the same as the accused line. tbh i didn't touch the brackets, nor the other lines in the file that look the same [didn't delete, overwrite, replaced nor anything] i've isolated the crash screen and the line on modmain, i hope it sums up the error because seriously '-' i couldn't find the 'missing bracket' in the entire file even in the line pointed out in the error i really don't know what i've overlooked in such a seemingly 'simple' error. '-' -another edit -i've searched the crash xD and ended up finding a couple forums about other programs, codes, stuff like this with similar errors about brackets but not DST related the only one i've found about dst is about a REALLY missing bracket, but as seen in the screenshot above, mine is not missing '-' so idk what could be- --i realise the 'cutstones<plural> and the board<singular> are swapped added the s in the wrong one haha i've fixed this already the screenshot was taken a while ago, the thing it's still pointing to the brackets in the line 175 idk why xD HAHAHA omg i'm going insaane--
14 downloadsThis code is designed for Don't Starve Together to allow for critical hits and items with critical hit properties. By design this allows all mobs the potential to be able to crit if they have crit chance greater than 0 Using inst.components.combat:SetCrit(critchance, critdmg, critfn) we can define a basic crit settings for a mob. Currently equipment have crit variables as inst.variables rather than component ones. Some fun examples if you have a hat that has crit chance, we can give it to a pigman and he'll be able to crit. Currently tested on a caves enabled server and works as advertised. Suggestions and bugs found for improvements welcome.