Chaosforge Forum

DoomRL => Modding => Topic started by: yaflhdztioxo on April 24, 2010, 19:25

Title: Infinite Arena (0.9.9.1)
Post by: yaflhdztioxo on April 24, 2010, 19:25
Since several are based on it but not everyone knows what it is, the infinite arena is attached (1.03).  Wiki version also updated.
Title: Re: Infinite Arena (0.9.9.1)
Post by: ZZ on April 25, 2010, 10:17
And what are the changes besides different columns and the more full description of RollBeing function?
Title: Re: Infinite Arena (0.9.9.1)
Post by: yaflhdztioxo on April 25, 2010, 10:48
Bug fix with the resolverange function.  That function (rather annoyingly) takes a number as well as a table.  Due to how Lua handles arguments resolverange(1, 2) is effectively resolverange(1), which will always return 1.  The correct syntax is resolverange( {1, 2} ) which passes a table.

Why oh why it does that we may never know.  But I was calling it the wrong way originally.


The commenting and reorganizing IS the major change.  Just to make this crystal clear:
The point of these updates is to MAKE the above code crystal clear :).  If there's a section you think could be easier to understand or you don't like the organization speak up.  If you have your own suggestions you can include them as well.
Title: Re: Infinite Arena (0.9.9.1)
Post by: yaflhdztioxo on April 25, 2010, 22:19
New version.  Certain code should be clearer, Vs are less likely to swarm you, chainsaw, BFG.
Title: Re: Infinite Arena (0.9.9.1)
Post by: Simon-v on April 26, 2010, 14:40
Implemented the new code in Angel of Patience. It makes much more sense now. Thanks for the update!