Changed Slow Weapon to Initiative Penalty
Changed the Slow checkbox in the weapon to subtract 1 from intiative per ACKS rules, instead of putting the character last in the initiative order like in OSE.master
							parent
							
								
									65820e609e
								
							
						
					
					
						commit
						9a786c29c0
					
				|  | @ -21,6 +21,9 @@ export class AcksActor extends Actor { | |||
|       data.initiative.value = data.initiative.mod; | ||||
|       if (this.data.type == "character") { | ||||
|         data.initiative.value += data.scores.dex.mod; | ||||
|         if (data.isSlow) { | ||||
|           data.initiative.value -= 1; | ||||
|         } | ||||
|       } | ||||
|     } else { | ||||
|       data.initiative.value = 0; | ||||
|  |  | |||
|  | @ -22,11 +22,10 @@ export class AcksCombat { | |||
|       if (!data.combatants[i].actor) { | ||||
|         return; | ||||
|       } | ||||
|       if (data.combatants[i].actor.data.data.isSlow) { | ||||
|         data.combatants[i].initiative = -789; | ||||
|       } else { | ||||
|       data.combatants[i].initiative = | ||||
|       groups[data.combatants[i].flags.acks.group].initiative; | ||||
|       if (data.combatants[i].actor.data.data.isSlow) { | ||||
|         data.combatants[i].initiative -= 1; | ||||
|       }       | ||||
|     } | ||||
|     combat.setupTurns(); | ||||
|  | @ -123,10 +122,11 @@ export class AcksCombat { | |||
|   static updateCombatant(combat, combatant, data) { | ||||
|     let init = game.settings.get("acks", "initiative"); | ||||
|     // Why do you reroll ?
 | ||||
|     if (combatant.actor.data.data.isSlow) { | ||||
|       data.initiative = -789; | ||||
|       return; | ||||
|     } | ||||
| // Legacy Slowness code from OSE
 | ||||
| //    if (combatant.actor.data.data.isSlow) {
 | ||||
| //      data.initiative = -789;
 | ||||
| //      return;
 | ||||
| //    }
 | ||||
|     if (data.initiative && init == "group") { | ||||
|       let groupInit = data.initiative; | ||||
|       // Check if there are any members of the group with init
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue