aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/production.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/fparkan-runtime/src/production.rs')
-rw-r--r--crates/fparkan-runtime/src/production.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/fparkan-runtime/src/production.rs b/crates/fparkan-runtime/src/production.rs
index 3ec6c795..3b407467 100644
--- a/crates/fparkan-runtime/src/production.rs
+++ b/crates/fparkan-runtime/src/production.rs
@@ -714,7 +714,10 @@ fn factory_at_communicator(
.ok_or_else(|| EngineError::Production("stand on a friendly factory communicator".into()))
}
-fn player_owner(world: &World, cockpit: StartingCockpit) -> Result<OwnerId, EngineError> {
+pub(super) fn player_owner(
+ world: &World,
+ cockpit: StartingCockpit,
+) -> Result<OwnerId, EngineError> {
identity_metadata(world, cockpit.handle)?
.owner_id
.ok_or_else(|| EngineError::Production("player clan is unavailable".into()))
@@ -740,7 +743,7 @@ fn production_error(error: impl std::fmt::Display) -> EngineError {
EngineError::Production(error.to_string())
}
-fn clan_scheme_cost(
+pub(super) fn clan_scheme_cost(
vfs: &Option<Arc<dyn Vfs>>,
mission: &LoadedMissionState,
owner: OwnerId,