This code causes the invisible token, if found in the turn order, to be swapped for the visible token: handleTurnOrderChange = function() {
Campaign().set({
turnorder: JSON.stringify(
_.map(JSON.parse( Campaign().get('turnorder') || '[]'), function(turn){
_.find(state.Bump.mirrored,function(slaveid,masterid){
if( slaveid === turn.id) {
turn.id = masterid ;
return true;
}
return false;
});
return turn;
})
)
});
},
swapping slaveid and masterid will cause any token which is BumpSlaved to have it's slave token in the turn order automatically: handleTurnOrderChange = function() {
Campaign().set({
turnorder: JSON.stringify(
_.map(JSON.parse( Campaign().get('turnorder') || '[]'), function(turn){
_.find(state.Bump.mirrored,function(slaveid,masterid){
if( masterid === turn.id) {
turn.id = slaveid ;
return true;
}
return false;
});
return turn;
})
)
});
}, That's on line 555 of the source, should pretty much do what you want, with the caveat that if you've bumped the token to the GM Layer, hiding it from the players, then the turn order will show the slave token, and hovering it will reveal the location. If you want to take advantage of Bump AND have your turn order always for the token on the GM layer, it's a bit more complicated but still possible. Let me know.