switch (FEAT_TRAINS,SELF, maglevhopper_layer1_grey, [
STORE_TEMP(PALETTE_GREY, 0x100), cargo_type
]){
STEL: return spritegroup_SLUGhopper_steel;
default: return spritegroup_SLUGhopper_wtf;
}
switch (FEAT_TRAINS,SELF, maglevhopper_layer1_dark_blue, [
STORE_TEMP(PALETTE_DARK_BLUE, 0x100)
]){
return spritegroup_maglevhopper_cargo_layer;
}
switch (FEAT_TRAINS,SELF, maglevhopper_layer1, [
cargo_type
]){
STEL: return maglevhopper_layer1_grey;
default: return maglevhopper_layer1_darkblue;
}
switch (FEAT_TRAINS,SELF, maglevhopper_layer0, [
STORE_TEMP(CB_FLAG_MORE_SPRITES + PALETTE_USE_DEFAULT, 0x100)
]){
return spritegroup_maglevhopper_wagon_layer;
}
switch (FEAT_TRAINS,SELF, maglevhopper_switch, [
getbits(extra_callback_info1, 8, 8)
]){
0: maglevhopper_layer0;
return maglevhopper_layer1;
}