You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
774 B
20 lines
774 B
|
|
|
|
while (true)
|
|
{
|
|
checkcounter = 0;
|
|
var shuff = ds_list_find_value(oControl.list_locations, ds_list_size(oControl.list_locations) - 1);
|
|
|
|
var tc = 0;
|
|
if (oControl.bombs_wall == true) tc++;
|
|
if (oControl.spider_wall == true && oControl.spring_wall == true) tc++;
|
|
if (oControl.spacejump_wall == true) tc++;
|
|
if (shuff == 7 && tc > 1) { } else { checkcounter++; }
|
|
//next line seems out of place. I'm trying to resolve issues without restricting speed booster from being here.
|
|
if (shuff == 7 && oControl.screw_wall == true) { } else { checkcounter++; }
|
|
if (checkcounter == 2) { break; }
|
|
ds_list_shuffle(oControl.list_locations);
|
|
}
|
|
ds_list_delete(oControl.list_locations, ds_list_size(oControl.list_locations) - 1);
|
|
return shuff;
|