15 lines
427 B
Plaintext
15 lines
427 B
Plaintext
|
function c_getstats(target) {
|
||
|
var dudes = variable_struct_get_names(target.data);
|
||
|
var lads = variable_struct_get_names(st);
|
||
|
var chaps = [];
|
||
|
var i;
|
||
|
for (i=0; i<array_length(dudes); i++) {
|
||
|
while !array_contains(lads, dudes[i]) || dudes[i] == "hp" {
|
||
|
array_delete(dudes, i, 1);
|
||
|
if i >= array_length(dudes) break;
|
||
|
}
|
||
|
if i >= array_length(dudes) break;
|
||
|
array_push(chaps, target.data[$dudes[i]]);
|
||
|
}
|
||
|
return chaps;
|
||
|
}
|