View Single Post
idea
Old
atrane365
Guest
 
Status:
Posts: n/a
Default idea - 05-03-2012, 10:51 AM

Quote:
Originally Posted by Dexor View Post

3. You have a lot of interesting programming practices that can probably be slimmed down by taking a look at your code and seeing what actions you are repeating over and over. For example, in world.kill you, in a Do Together, check if health > 0 for multiple items, which would be the same thing as if you moved that check out of the Do Together and put it before it, removing a level of nesting.
Reason I mention this is because you asked for ways to slim it down.
-Dx
Or, if you place (or have placed) the items in the world.kill Do Together in a list, you can do a For All Together, thereby reducing it to between 5 and 10 lines of code, instead of however long it actually is
   
Reply With Quote