Journeys->sanity_check: Allow a single trip to take up to three days

Closes #182
This commit is contained in:
Birte Kristina Friesel 2024-11-24 16:58:03 +01:00
parent 22a9345836
commit 0b6a431db8
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -1101,14 +1101,14 @@ sub sanity_check {
. ' Teleportation und Zeitreisen werden in diesem Universum nicht unterstützt.'; . ' Teleportation und Zeitreisen werden in diesem Universum nicht unterstützt.';
} }
if ( $journey->{sched_duration} if ( $journey->{sched_duration}
and $journey->{sched_duration} > 60 * 60 * 24 ) and $journey->{sched_duration} > 60 * 60 * 72 )
{ {
return 'Die Fahrt ist länger als 24 Stunden.'; return 'Die Fahrt ist länger als drei Tage.';
} }
if ( $journey->{rt_duration} if ( $journey->{rt_duration}
and $journey->{rt_duration} > 60 * 60 * 24 ) and $journey->{rt_duration} > 60 * 60 * 72 )
{ {
return 'Die Fahrt ist länger als 24 Stunden.'; return 'Die Fahrt ist länger als drei Tage.';
} }
if ( $journey->{kmh_route} > 500 or $journey->{kmh_beeline} > 500 ) { if ( $journey->{kmh_route} > 500 or $journey->{kmh_beeline} > 500 ) {
return 'Die berechnete Geschwindigkeit beträgt über 500 km/h.' return 'Die berechnete Geschwindigkeit beträgt über 500 km/h.'