[2.0.8] prototypes.max_beacon_supply_area_distance and get_supply_area_distance() should be from center of entity.

Things that we aren't going to implement
wretlaw120
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu Jan 14, 2021 10:16 pm
Contact:

[2.0.8] prototypes.max_beacon_supply_area_distance and get_supply_area_distance() should be from center of entity.

Post by wretlaw120 »

prototypes.max_beacon_supply_area_distance measures the max distance a beacon can affect a building from the edge of the beacon. it would be much more convenient if it were from the center of the beacon, so that it isn't necessary to know the bounding box of the beacon when figuring out what machines are in range of it. (yes, if you have a beacon, you also know its bounding box, it is simply a matter of convenience, not needing to add the radius to the collision box)

Picture for clarification purposes:
beacon_demonstration.png
beacon_demonstration.png (409.37 KiB) Viewed 227 times
The green line is 16 tiles, the red is 14, and the value printed by both the below commands is 14.

Code: Select all

/c game.print(prototypes.max_beacon_supply_area_distance)
/c game.print(prototypes.entity[game.player.selected.name].get_supply_area_distance()) --when the beacon is selected
And yes, I did check with only the vanilla beacon active. The value printed is 3, which is consistent with what I'm showing with the modded beacon.
Post Reply

Return to “Won't implement”