Chroniques Oubliees: set the throwing weapon flag correctly when guessing
weapon type.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user