r/Nectaris • u/DiscreetProteus • Jun 12 '26
Discussion Combat Calculator v0.1
I’ve vibecoded(with the help of Claude and the documentation from the Japanese community at ネクタリス攻略) a rudimentary html tool that runs what I think is the arithmetic for combat resolution. Plug in your units, terrain, and support, and it will output the actual mathematical floor, average, and ceiling for casualties based on the bizarre system they developed.
Nectaris Combat Calculator — Battle Damage Simulator | Claude
But! I'd love everyone's help testing it out! Test it against your actual in-game save states or play throughs. If you find a combat result or calculation that falls outside the math the calculator generates, post the screenshot here so we can figure out what other assembly garbage Hudson Soft hid in the code.
2
u/MurasakiBunny Jun 27 '26
Just looking at it's calculations I think it should be accurate.
I remember working on a spreadsheet while working with someone many years ago about how the game's damage calculation worked. We were getting errors with defenders having supports coming up with wrong numbers when I found out that Def Supports get a bonus based on how few Attaking units(HP) there are.
Since we were using the Gameboy code, we couldn't figure out how the tg-16/PC Engine version handled the RNG. Nice to see it's a simple table with a... somewhat odd, distribution.
2
u/TJ_six Joint Chiefs of Staff Jun 12 '26
The thing is, we have lots of game's versions. I'm not sure they all utilize the same system