Gentle approach to removing random

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderators: Forum Moderators, Developers

Forum rules
Before posting a new idea, you must read the following:
Generous
Posts: 47
Joined: July 4th, 2011, 7:28 am

Re: Gentle approach to removing random

Post by Generous » March 4th, 2015, 10:26 pm

Code: Select all

<Lua error> .../add-ons/Deterministic_Offense/deterministic_offense.lua:214: attempt to perform arithmetic on local 'chance_to_hit' (a nil value)
stack traceback:
.../add-ons/Deterministic_Offense/deterministic_offense.lua:214: in function
<.../add-ons/Deterministic_Offense/deterministic_offense.lua:193>
(...tail calls...)
.../add-ons/Deterministic_Offense/deterministic_offense.lua:426: in function 'cmd'
.../Wesnoth.app/Contents/Resources/.//data/lua/wml-tags.lua:320: in function
<.../Wesnoth.app/Contents/Resources/.//data/lua/wml-tags.lua:284>
got it while playing Ageless Orocia

optimother
Posts: 76
Joined: July 12th, 2014, 4:09 am

Re: Gentle approach to removing random

Post by optimother » October 31st, 2015, 8:45 pm

I uploaded new version — in case when defense is undefined it's considered to be 50%. Some weird terrain or modifier have nil value.

Post Reply