Skip to content

Commit

Permalink
sextant calculation
Browse files Browse the repository at this point in the history
i suck at longitude
  • Loading branch information
aristotlepenguin committed May 25, 2023
1 parent ad86781 commit f60903a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ew/cmd/yachts/yachtcmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async def avast(cmd):
if item_sought:
item = EwItem(id_item=item_sought.get('id_item'))
if item.item_props.get("id_item") == "sextant":
latlong = "**38.{}{} N -112.{}{} W**\n".format(322+yacht.xcoord, random.randint(10, 99), 205+yacht.ycoord, random.randint(10, 99))
latlong = "**38.{}{} N -112.{}{} W**\n".format(322-yacht.ycoord, random.randint(10, 99), 205-yacht.xcoord, random.randint(10, 99))

extra_response = "\n{}{} is currently ".format(latlong, yacht.yacht_name)

Expand Down

0 comments on commit f60903a

Please sign in to comment.