Skip to content

Commit

Permalink
Drone tow logic similar to do_drag (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevnull authored Oct 1, 2024
1 parent 95cf756 commit 129dbed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/act.drive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2173,8 +2173,8 @@ ACMD(do_tow)
send_to_char("The vehicle has to be off for you to tow it.\r\n", ch);
else if (veh->type == VEH_DRONE && tveh->type != VEH_DRONE)
send_to_char("Drones can only tow other drones.\r\n", ch);
else if (veh->type == VEH_DRONE && veh->load <= tveh->load)
send_to_char("Drones can only tow drones that are lighter than them.\r\n", ch);
else if (veh->type == VEH_DRONE && ((veh->load - veh->usedload) * 2.5) <= calculate_vehicle_weight(tveh))
send_to_char("That drone is too heavy for your drone to tow.\r\n", ch);
else if (veh->towing)
send_to_char("Towing a vehicle that's towing another vehicle isn't very safe!\r\n", ch);
else {
Expand Down

0 comments on commit 129dbed

Please sign in to comment.