plotmissed Posted June 5, 2019 Share Posted June 5, 2019 I want to make walls immune to hail in hurricane season. In modmain.lua i have: local TUNING = GLOBAL.TUNING TUNING.HURRICANE_HAIL_DAMAGE = 0 but it doesn’t work. Any help is much appreciated! Link to comment Share on other sites More sharing options...
Ultroman Posted June 24, 2019 Share Posted June 24, 2019 If you search for HURRICANE_HAIL_DAMAGE in the game code, you can see that it is only used for dealing damage to player characters, and even that part has been commented out, so HURRICANE_HAIL_DAMAGE currently does nothing. You need to figure out where the damage to the walls is being applied, in order to figure out which variable or function to change. I can't find the exact place in the code where this happens. I did see that walls can be destroyed by blowing winds, though. Link to comment Share on other sites More sharing options...
plotmissed Posted June 26, 2019 Author Share Posted June 26, 2019 Hey thanks very much for your reply. Yeah it’s the blowing winds not the hail, you’re right. I was confused because I read an old thread about hail. I forgot to comment that I figured it out: It’s in walls.lua. Only Wood Walls and Hay Walls are affected. I just changed "windblown_damage=0", but you can probably just delete the whole windblown stuff, didn’t try that yet. {name = "wood", tags={"wood"}, loot = "log", maxloots = 2, maxhealth=TUNING.WOODWALL_HEALTH, flammable = true, buildsound="dontstarve/common/place_structure_wood", destroysound="dontstarve/common/destroy_wood", windblown_speed=TUNING.WALLWOOD_WINDBLOWN_SPEED, windblown_fall_chance=TUNING.WALLWOOD_WINDBLOWN_DAMAGE_CHANCE, windblown_damage=0}, {name = "hay", tags={"grass"}, loot = "cutgrass", maxloots = 2, maxhealth=TUNING.HAYWALL_HEALTH, flammable = true, buildsound="dontstarve/common/place_structure_straw", destroysound="dontstarve/common/destroy_straw", windblown_speed=TUNING.WALLHAY_WINDBLOWN_SPEED, windblown_fall_chance=TUNING.WALLHAY_WINDBLOWN_DAMAGE_CHANCE, windblown_damage=0}, Link to comment Share on other sites More sharing options...
plotmissed Posted June 28, 2019 Author Share Posted June 28, 2019 I ended up using this because it’s much simpler: local TUNING = GLOBAL.TUNING TUNING.WALLWOOD_WINDBLOWN_DAMAGE = 0 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.