Fix defense rolls
This commit is contained in:
		| @@ -793,7 +793,7 @@ export default class LethalFantasyRoll extends Roll { | ||||
|     diceResults.push({ dice: `${dice.toUpperCase()}`, value: diceResult }) | ||||
|     let diceSum = diceResult | ||||
|     while (diceResult === maxValue) { | ||||
|       let r = await new Roll(baseFormula).evaluate() | ||||
|       let r = await new Roll(dice).evaluate() | ||||
|       diceResult = r.dice[0].results[0].result | ||||
|       diceResults.push({ dice: `${dice.toUpperCase()}-1`, value: diceResult - 1 }) | ||||
|       diceSum += (diceResult - 1) | ||||
| @@ -870,6 +870,7 @@ export default class LethalFantasyRoll extends Roll { | ||||
|   /** @override */ | ||||
|   async render(chatOptions = {}) { | ||||
|     let chatData = await this._getChatCardData(chatOptions.isPrivate) | ||||
|     console.log("ChatData", chatData)  | ||||
|     return await renderTemplate(this.constructor.CHAT_TEMPLATE, chatData) | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -34,7 +34,10 @@ export default class LethalFantasyUtils { | ||||
|       return val == null; | ||||
|     }); | ||||
|     Handlebars.registerHelper('match', function (val, search) { | ||||
|       return val.match(search); | ||||
|       if ( val && search) { | ||||
|         return val?.match(search); | ||||
|       } | ||||
|       return false | ||||
|     }); | ||||
|  | ||||
|     Handlebars.registerHelper('exists', function (val) { | ||||
|   | ||||
| @@ -1 +1 @@ | ||||
| MANIFEST-000147 | ||||
| MANIFEST-000151 | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| 2025/02/05-16:00:44.665557 7ffaecbf96c0 Recovering log #145 | ||||
| 2025/02/05-16:00:44.676229 7ffaecbf96c0 Delete type=3 #143 | ||||
| 2025/02/05-16:00:44.676286 7ffaecbf96c0 Delete type=0 #145 | ||||
| 2025/02/05-16:03:04.365822 7ffae6bff6c0 Level-0 table #150: started | ||||
| 2025/02/05-16:03:04.365862 7ffae6bff6c0 Level-0 table #150: 0 bytes OK | ||||
| 2025/02/05-16:03:04.371953 7ffae6bff6c0 Delete type=0 #148 | ||||
| 2025/02/05-16:03:04.372182 7ffae6bff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:03:04.372238 7ffae6bff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end) | ||||
| 2025/02/06-10:14:34.569454 7ffae7fff6c0 Recovering log #149 | ||||
| 2025/02/06-10:14:34.654202 7ffae7fff6c0 Delete type=3 #147 | ||||
| 2025/02/06-10:14:34.654269 7ffae7fff6c0 Delete type=0 #149 | ||||
| 2025/02/06-10:23:45.931839 7ffae6bff6c0 Level-0 table #154: started | ||||
| 2025/02/06-10:23:45.931895 7ffae6bff6c0 Level-0 table #154: 0 bytes OK | ||||
| 2025/02/06-10:23:45.938070 7ffae6bff6c0 Delete type=0 #152 | ||||
| 2025/02/06-10:23:45.938269 7ffae6bff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end) | ||||
| 2025/02/06-10:23:45.938320 7ffae6bff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end) | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| 2025/02/05-15:14:30.283748 7ffaed3fa6c0 Recovering log #141 | ||||
| 2025/02/05-15:14:30.293867 7ffaed3fa6c0 Delete type=3 #139 | ||||
| 2025/02/05-15:14:30.293934 7ffaed3fa6c0 Delete type=0 #141 | ||||
| 2025/02/05-15:37:27.604946 7ffae6bff6c0 Level-0 table #146: started | ||||
| 2025/02/05-15:37:27.604987 7ffae6bff6c0 Level-0 table #146: 0 bytes OK | ||||
| 2025/02/05-15:37:27.611715 7ffae6bff6c0 Delete type=0 #144 | ||||
| 2025/02/05-15:37:27.632111 7ffae6bff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-15:37:27.632163 7ffae6bff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:00:44.665557 7ffaecbf96c0 Recovering log #145 | ||||
| 2025/02/05-16:00:44.676229 7ffaecbf96c0 Delete type=3 #143 | ||||
| 2025/02/05-16:00:44.676286 7ffaecbf96c0 Delete type=0 #145 | ||||
| 2025/02/05-16:03:04.365822 7ffae6bff6c0 Level-0 table #150: started | ||||
| 2025/02/05-16:03:04.365862 7ffae6bff6c0 Level-0 table #150: 0 bytes OK | ||||
| 2025/02/05-16:03:04.371953 7ffae6bff6c0 Delete type=0 #148 | ||||
| 2025/02/05-16:03:04.372182 7ffae6bff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:03:04.372238 7ffae6bff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end) | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							| @@ -1 +1 @@ | ||||
| MANIFEST-000146 | ||||
| MANIFEST-000150 | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| 2025/02/05-16:00:44.678559 7ffaed3fa6c0 Recovering log #144 | ||||
| 2025/02/05-16:00:44.688648 7ffaed3fa6c0 Delete type=3 #142 | ||||
| 2025/02/05-16:00:44.688723 7ffaed3fa6c0 Delete type=0 #144 | ||||
| 2025/02/05-16:03:04.346867 7ffae6bff6c0 Level-0 table #149: started | ||||
| 2025/02/05-16:03:04.346914 7ffae6bff6c0 Level-0 table #149: 0 bytes OK | ||||
| 2025/02/05-16:03:04.352833 7ffae6bff6c0 Delete type=0 #147 | ||||
| 2025/02/05-16:03:04.372125 7ffae6bff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:03:04.372197 7ffae6bff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end) | ||||
| 2025/02/06-10:14:34.672628 7ffae77fe6c0 Recovering log #148 | ||||
| 2025/02/06-10:14:34.785331 7ffae77fe6c0 Delete type=3 #146 | ||||
| 2025/02/06-10:14:34.785427 7ffae77fe6c0 Delete type=0 #148 | ||||
| 2025/02/06-10:23:45.924668 7ffae6bff6c0 Level-0 table #153: started | ||||
| 2025/02/06-10:23:45.924700 7ffae6bff6c0 Level-0 table #153: 0 bytes OK | ||||
| 2025/02/06-10:23:45.931703 7ffae6bff6c0 Delete type=0 #151 | ||||
| 2025/02/06-10:23:45.938255 7ffae6bff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end) | ||||
| 2025/02/06-10:23:45.938308 7ffae6bff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end) | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| 2025/02/05-15:14:30.299103 7ffae77fe6c0 Recovering log #140 | ||||
| 2025/02/05-15:14:30.310625 7ffae77fe6c0 Delete type=3 #138 | ||||
| 2025/02/05-15:14:30.310691 7ffae77fe6c0 Delete type=0 #140 | ||||
| 2025/02/05-15:37:27.625122 7ffae6bff6c0 Level-0 table #145: started | ||||
| 2025/02/05-15:37:27.625155 7ffae6bff6c0 Level-0 table #145: 0 bytes OK | ||||
| 2025/02/05-15:37:27.632000 7ffae6bff6c0 Delete type=0 #143 | ||||
| 2025/02/05-15:37:27.632141 7ffae6bff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-15:37:27.632176 7ffae6bff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:00:44.678559 7ffaed3fa6c0 Recovering log #144 | ||||
| 2025/02/05-16:00:44.688648 7ffaed3fa6c0 Delete type=3 #142 | ||||
| 2025/02/05-16:00:44.688723 7ffaed3fa6c0 Delete type=0 #144 | ||||
| 2025/02/05-16:03:04.346867 7ffae6bff6c0 Level-0 table #149: started | ||||
| 2025/02/05-16:03:04.346914 7ffae6bff6c0 Level-0 table #149: 0 bytes OK | ||||
| 2025/02/05-16:03:04.352833 7ffae6bff6c0 Delete type=0 #147 | ||||
| 2025/02/05-16:03:04.372125 7ffae6bff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:03:04.372197 7ffae6bff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end) | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								packs-system/lf-gifts/MANIFEST-000150
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								packs-system/lf-gifts/MANIFEST-000150
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -1 +1 @@ | ||||
| MANIFEST-000146 | ||||
| MANIFEST-000150 | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| 2025/02/05-16:00:44.652361 7ffae7fff6c0 Recovering log #144 | ||||
| 2025/02/05-16:00:44.662194 7ffae7fff6c0 Delete type=3 #142 | ||||
| 2025/02/05-16:00:44.662247 7ffae7fff6c0 Delete type=0 #144 | ||||
| 2025/02/05-16:03:04.352960 7ffae6bff6c0 Level-0 table #149: started | ||||
| 2025/02/05-16:03:04.352985 7ffae6bff6c0 Level-0 table #149: 0 bytes OK | ||||
| 2025/02/05-16:03:04.358938 7ffae6bff6c0 Delete type=0 #147 | ||||
| 2025/02/05-16:03:04.372147 7ffae6bff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:03:04.372212 7ffae6bff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end) | ||||
| 2025/02/06-10:14:34.503531 7ffaed3fa6c0 Recovering log #148 | ||||
| 2025/02/06-10:14:34.555435 7ffaed3fa6c0 Delete type=3 #146 | ||||
| 2025/02/06-10:14:34.555505 7ffaed3fa6c0 Delete type=0 #148 | ||||
| 2025/02/06-10:23:45.917882 7ffae6bff6c0 Level-0 table #153: started | ||||
| 2025/02/06-10:23:45.917923 7ffae6bff6c0 Level-0 table #153: 0 bytes OK | ||||
| 2025/02/06-10:23:45.924532 7ffae6bff6c0 Delete type=0 #151 | ||||
| 2025/02/06-10:23:45.938239 7ffae6bff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end) | ||||
| 2025/02/06-10:23:45.938295 7ffae6bff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end) | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| 2025/02/05-15:14:30.268354 7ffae7fff6c0 Recovering log #140 | ||||
| 2025/02/05-15:14:30.278771 7ffae7fff6c0 Delete type=3 #138 | ||||
| 2025/02/05-15:14:30.278837 7ffae7fff6c0 Delete type=0 #140 | ||||
| 2025/02/05-15:37:27.618478 7ffae6bff6c0 Level-0 table #145: started | ||||
| 2025/02/05-15:37:27.618503 7ffae6bff6c0 Level-0 table #145: 0 bytes OK | ||||
| 2025/02/05-15:37:27.625016 7ffae6bff6c0 Delete type=0 #143 | ||||
| 2025/02/05-15:37:27.632132 7ffae6bff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-15:37:27.632182 7ffae6bff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:00:44.652361 7ffae7fff6c0 Recovering log #144 | ||||
| 2025/02/05-16:00:44.662194 7ffae7fff6c0 Delete type=3 #142 | ||||
| 2025/02/05-16:00:44.662247 7ffae7fff6c0 Delete type=0 #144 | ||||
| 2025/02/05-16:03:04.352960 7ffae6bff6c0 Level-0 table #149: started | ||||
| 2025/02/05-16:03:04.352985 7ffae6bff6c0 Level-0 table #149: 0 bytes OK | ||||
| 2025/02/05-16:03:04.358938 7ffae6bff6c0 Delete type=0 #147 | ||||
| 2025/02/05-16:03:04.372147 7ffae6bff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:03:04.372212 7ffae6bff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end) | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								packs-system/lf-skills/MANIFEST-000150
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								packs-system/lf-skills/MANIFEST-000150
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -1 +1 @@ | ||||
| MANIFEST-000146 | ||||
| MANIFEST-000150 | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| 2025/02/05-16:00:44.691071 7ffae77fe6c0 Recovering log #144 | ||||
| 2025/02/05-16:00:44.700879 7ffae77fe6c0 Delete type=3 #142 | ||||
| 2025/02/05-16:00:44.700946 7ffae77fe6c0 Delete type=0 #144 | ||||
| 2025/02/05-16:03:04.359059 7ffae6bff6c0 Level-0 table #149: started | ||||
| 2025/02/05-16:03:04.359084 7ffae6bff6c0 Level-0 table #149: 0 bytes OK | ||||
| 2025/02/05-16:03:04.365689 7ffae6bff6c0 Delete type=0 #147 | ||||
| 2025/02/05-16:03:04.372167 7ffae6bff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:03:04.372225 7ffae6bff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) | ||||
| 2025/02/06-10:14:34.802017 7ffaecbf96c0 Recovering log #148 | ||||
| 2025/02/06-10:14:34.896611 7ffaecbf96c0 Delete type=3 #146 | ||||
| 2025/02/06-10:14:34.896680 7ffaecbf96c0 Delete type=0 #148 | ||||
| 2025/02/06-10:23:45.911293 7ffae6bff6c0 Level-0 table #153: started | ||||
| 2025/02/06-10:23:45.911347 7ffae6bff6c0 Level-0 table #153: 0 bytes OK | ||||
| 2025/02/06-10:23:45.917684 7ffae6bff6c0 Delete type=0 #151 | ||||
| 2025/02/06-10:23:45.938219 7ffae6bff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) | ||||
| 2025/02/06-10:23:45.938282 7ffae6bff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| 2025/02/05-15:14:30.313911 7ffaecbf96c0 Recovering log #140 | ||||
| 2025/02/05-15:14:30.324249 7ffaecbf96c0 Delete type=3 #138 | ||||
| 2025/02/05-15:14:30.324308 7ffaecbf96c0 Delete type=0 #140 | ||||
| 2025/02/05-15:37:27.611827 7ffae6bff6c0 Level-0 table #145: started | ||||
| 2025/02/05-15:37:27.611849 7ffae6bff6c0 Level-0 table #145: 0 bytes OK | ||||
| 2025/02/05-15:37:27.618366 7ffae6bff6c0 Delete type=0 #143 | ||||
| 2025/02/05-15:37:27.632123 7ffae6bff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-15:37:27.632191 7ffae6bff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:00:44.691071 7ffae77fe6c0 Recovering log #144 | ||||
| 2025/02/05-16:00:44.700879 7ffae77fe6c0 Delete type=3 #142 | ||||
| 2025/02/05-16:00:44.700946 7ffae77fe6c0 Delete type=0 #144 | ||||
| 2025/02/05-16:03:04.359059 7ffae6bff6c0 Level-0 table #149: started | ||||
| 2025/02/05-16:03:04.359084 7ffae6bff6c0 Level-0 table #149: 0 bytes OK | ||||
| 2025/02/05-16:03:04.365689 7ffae6bff6c0 Delete type=0 #147 | ||||
| 2025/02/05-16:03:04.372167 7ffae6bff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) | ||||
| 2025/02/05-16:03:04.372225 7ffae6bff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							| @@ -6,7 +6,7 @@ | ||||
|   "download": "#{DOWNLOAD}#", | ||||
|   "url": "#{URL}#", | ||||
|   "license": "LICENSE", | ||||
|   "version": "12.0.32", | ||||
|   "version": "12.0.33", | ||||
|   "authors": [ | ||||
|     { | ||||
|       "name": "Uberwald", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user