Jump to content
Game-Labs Forum

Felix Victor

Members2
  • Posts

    800
  • Joined

  • Days Won

    4

Posts posted by Felix Victor

  1. On 11/25/2019 at 7:11 PM, DanseMacabre said:

    sell price for consumed item in port?

     

    On 12/5/2019 at 10:40 PM, Marlinspike said:

    bump, hoping for an answer.

    The estimated sell price for a consumed good is

    buyPrice * 3 + (planarDistance * buyPrice * distanceFactor) / 6 / 100
    • buyPrice: BasePrice from API data
    • planarDistance: distance between sell port and closest port dropping this good
    • distanceFactor: RangePct from API data

    But fear not, my map calculates it all. Just use 'Select trade relations' and click a port. Estimated net profits are indicated at the bottom of the port info.

    • Like 1
  2. 10 hours ago, Eduard L'Aquila said:

    @Felix Victor how large are the PB circles are, how far from "zero" the actual PB circle is drawn

    With PB circles you mean the join circles?

    • size: my estimates are 14 and 28 pixels
    • position: 5 pixels away from port in the direction indicated in API data (rotation)
    const getJoinCircle = (id: number, rotation: number): Point => {
        const { x: x0, y: y0 } = apiPortPos.get(id)!
        const distance = 5
        const degrees = degreesHalfCircle - rotation
        const radians = (degrees * Math.PI) / degreesHalfCircle
        const x1 = Math.trunc(x0 + distance * Math.sin(radians))
        const y1 = Math.trunc(y0 + distance * Math.cos(radians))
    
        return [x1, y1]
    }

    Calculated data is here: https://github.com/felixvictor/na-map/blob/master/src/lib/gen-generic/pb-zones.json

    • Like 1
×
×
  • Create New...