Presto Ragu
Member
I'm more than a little sleepy (but the construction outside prevents sleep), so I fully expect to get a "duh" feeling after someone else looks it over. That is why I'm not reporting it as a bug yet.
This particular piece of code produces the following output:
I am running Mafia 13.5, on Linux if that matters (Ubuntu 9.04).
EDIT:: I should add, there isn't any reason ItemList should ever == $item[none], but that is a different problem to track down.
Code:
print( count( ItemList[ "Closet"]) + " Closet", "red");
if( count( ItemList[ "Closet"]) > 0) {
print( "Putting items into closet...", "blue");
LoopCounter = 0;
while( LoopCounter < count( ItemList[ "Closet"])) {
print( ItemQuant[ "Closet", LoopCounter] + " " + ItemList[ "Closet", LoopCounter]);
LoopCounter = LoopCounter + 1;
}
}
This particular piece of code produces the following output:
Code:
> 682 Closet
> Putting items into closet...
> 1 none
> 0 seal-clubbing club
> 0 helmet turtle
> 0 ravioli hat
> 0 saucepan
> 0 disco mask
> 0 disco ball
> 0 moxie weed
> 0 strongness elixir
> 0 magicalness-in-a-can
> 0 spicy noodles
> 0 tortoise's blessing
> 8 Kentucky-style derby
[b]CLIPPED FOR BREVITY[/b]
> 0 tiny plastic Boris
> 0 tiny plastic Jarlsberg
> 0 tiny plastic Sneaky Pete
> 0 tiny plastic Susie
> 0 Lucky Surprise Egg
> 0 maid head
> 0 none
> 0 none
> 0 none
> 0 none
> 0 none
etc... Until I end the Java process because Mafia locks up.
I am running Mafia 13.5, on Linux if that matters (Ubuntu 9.04).
EDIT:: I should add, there isn't any reason ItemList should ever == $item[none], but that is a different problem to track down.
Last edited: