I'm trying to improve wiki documentation, and try as I might I can not find the definition for getStr (or getDex, getCon, etc).
Filename? 
Thanks.
			
			
									
									Where the heck is getStr() defined?
Moderator: Moderator
Where the heck is getStr() defined?
Please help with the ToME wiki!
						Re: Where the heck is getStr() defined?
Apparently uses _M:getStat in \games\engines\default\engine\interface\ActorStats.lua as by:
-- Note that the engine also auto-defines stat specific methods on the form: self:getShortname().
-- If you stat short name is STR then it becomes getStr()
Which, I have to say, is really annoying for anyone code diving :/
			
			
									
									-- Note that the engine also auto-defines stat specific methods on the form: self:getShortname().
-- If you stat short name is STR then it becomes getStr()
Which, I have to say, is really annoying for anyone code diving :/
Please help with the ToME wiki!
						Re: Where the heck is getStr() defined?
Some functions seem to be auto generating.
			
			
									
									My feedback meter decays into coding. Give me feedback and I make mods.
						- 
				Doctornull
 - Sher'Tul Godslayer
 - Posts: 2402
 - Joined: Tue Jun 18, 2013 10:46 pm
 - Location: Ambush!
 
Re: Where the heck is getStr() defined?
In the larger projects I've worked on, when we auto-generate code, we also try to auto-generate the documentation for that code, because it's kind of horrible to ask people to read auto-generated code.
			
			
									
									
						Re: Where the heck is getStr() defined?
Thing is it doesnt autogen code, it autogen the functions themselves at runtime (and this is said somewher in the actorstats docs IIRC)
			
			
									
									[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
						--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning