Chroniques Oubliees: set the throwing weapon flag correctly when guessing

weapon type.
This commit is contained in:
Ulty
2021-09-09 18:00:15 +02:00
parent 8ccd452e4f
commit 44994071e6
+2 -1
View File
@@ -3026,7 +3026,7 @@
<!-- FIN TEMPLATES -->
<!-- **** SCRIPTS / SHEET WORKERS -->
<script type="text/worker">
on('sheet:opened', function() {
on('sheet:opened', function() {
// **** Gestion transition de version
getAttrs(["version", "option_setting"], function(v) {
var verfdp = parseFloat(v.version) || 0;
@@ -4219,6 +4219,7 @@
var s = mapArmes[mot];
if (s && s.typeattaque) {
newAttrs[prefix + 'typeattaque'] = s.typeattaque;
if (s.typeattaque == 'Arme de jet') newAttrs[prefix + 'armejet'] = 'on';
typeAttaque = s.typeattaque;
newAttrs[prefix + 'modificateurs'] = s.modificateurs;
newAttrs[prefix + 'typedegats'] = s.typedegats;