src/scripts/combat.js
//select the next char to move
select the next char to move
select the next char to move
selectChar() { 
  var s = window.story.state;
  var result = {OK:false, msg:''};
  if(s.combat.turnStack.length>0) {
    s.combat.actor= s.combat.turnStack.shift();
    s.combat.action = null;
    this.next=this.selectMove;
  } else {
  this.next=this.preTurn;
  }
  return(result);
}
selectChar ( ) { var s = window . story . state ; var result = { OK : false , msg : '' } ; if ( s . combat . turnStack . length > 0 ) { s . combat . actor = s . combat . turnStack . shift ( ) ; s . combat . action = null ; this . next = this . selectMove ; } else { this . next = this . preTurn ; } return ( result ) ; }
select the next char to move
select the next char to move
//switch to next char //actual move = 0 //next turn after all done