Skip to content

Commit

Permalink
Merge pull request #1 from jurex/light-distance-fix
Browse files Browse the repository at this point in the history
Light radius fix
  • Loading branch information
rrgeorge authored Feb 18, 2021
2 parents 26e5b80 + d914ce8 commit 774b25b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions foundrytoencounter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 774b25b

Please sign in to comment.