diff --git a/foundrytoencounter.py b/foundrytoencounter.py index 187765c..521692d 100644 --- a/foundrytoencounter.py +++ b/foundrytoencounter.py @@ -370,8 +370,8 @@ def createMap(map,mapgroup): ET.SubElement(asset,'name').text = "Light {}".format(i+1) lightel = ET.SubElement(tile,'light', {'id': str(uuid.uuid5(moduuid,mapslug+"/lights/"+str(i)+"light"))}) - ET.SubElement(lightel,'radiusMax').text = str(light["dim"]*map["gridDistance"]) - ET.SubElement(lightel,'radiusMin').text = str(light["bright"]*map["gridDistance"]) + ET.SubElement(lightel,'radiusMax').text = str(round(light["dim"])) + ET.SubElement(lightel,'radiusMin').text = str(round(light["bright"])) ET.SubElement(lightel,'color').text = light["tintColor"] if "tintColor" in light and light["tintColor"] else "#ffffff" ET.SubElement(lightel,'opacity').text = str(light["tintAlpha"]) ET.SubElement(lightel,'alwaysVisible').text = "YES" if light["t"] == "u" else "NO"