alaestor / Rimworld-Teleporting

1 stars 1 forks source link

TeleportBehavior should act directly on originator's fuel #21

Closed alaestor closed 3 years ago

alaestor commented 3 years ago

In order to implement range limitations in TeleportBehavior public methods RemainingFuel and FuelCostToTravel were added to Building_TeleportConsole and TeleportBehavior has uses statements like originator is Building_TeleportConsole console in order to utilize these methods.

This isn't ideal...

TeleportBehavior shouldn't need knowledge of Building_TeleportConsole; it should get the CompUsesConsumables associated with the originator and use it directly to generalize long-range global teleport fuel range limits.

-[] make TeleportBehavior access the ~~CompUsesConsumables refuelableComp of originator~~ -[] rename TeleportBehavior variables referencing "fuel" to "consumables" or something

alaestor commented 3 years ago

Blocked by CompUsesConsumables #8

alaestor commented 3 years ago

refuelableComp now passed in to Long Range teles, logic improved, console still responsible for doing fuel consumption