@@ -9802,12 +9802,12 @@ SCP_map<SCP_string, weapon_stat_value> weapon_get_stats(const weapon_info &wi)
98029802 stats[" is_beam" ] = is_beam;
98039803 stats[" allowed_for_player" ] = (bool )wi.wi_flags [Weapon::Info_Flags::Player_allowed];
98049804
9805- // Velocity and range
9805+ // max_speed and range
98069806 if (is_beam) {
9807- stats[" velocity " ] = 0 .0f ;
9807+ stats[" max_speed " ] = 0 .0f ;
98089808 stats[" standard_range" ] = wi.b_info .range ;
98099809 } else {
9810- stats[" velocity " ] = wi.max_speed ;
9810+ stats[" max_speed " ] = wi.max_speed ;
98119811 stats[" standard_range" ] = wi.max_speed * wi.lifetime ;
98129812 }
98139813
@@ -9914,7 +9914,7 @@ SCP_string weapon_get_stats_text(const weapon_info &wi)
99149914 if (is_beam) {
99159915 sprintf (buf, " \t Velocity: N/A Range: %.0f\n " , std::get<float >(stats[" standard_range" ]));
99169916 } else {
9917- sprintf (buf, " \t Velocity: %-11.0fRange: %.0f\n " , std::get<float >(stats[" velocity " ]), std::get<float >(stats[" standard_range" ]));
9917+ sprintf (buf, " \t Velocity: %-11.0fRange: %.0f\n " , std::get<float >(stats[" max_speed " ]), std::get<float >(stats[" standard_range" ]));
99189918 }
99199919 result += buf;
99209920
@@ -9981,7 +9981,7 @@ void weapon_spew_stats(WeaponSpewType type)
99819981 static const csv_column columns[] = {
99829982 {" Name" , nullptr },
99839983 {" Type" , " type" },
9984- {" Velocity" , " velocity " },
9984+ {" Velocity" , " max_speed " },
99859985 {" Range" , " standard_range" },
99869986 {" Damage Hull" , " damage_hull" },
99879987 {" DPS Hull" , " dps_hull" },
@@ -10018,7 +10018,7 @@ void weapon_spew_stats(WeaponSpewType type)
1001810018 auto is_blank = [](const char *key, bool primary, bool is_beam) -> bool {
1001910019 if (!key)
1002010020 return false ;
10021- if (is_beam && !strcmp (key, " velocity " ))
10021+ if (is_beam && !strcmp (key, " max_speed " ))
1002210022 return true ;
1002310023 if (primary && (!strcmp (key, " reload_rate" ) || !strcmp (key, " reload_rate_reciprocal" )))
1002410024 return true ;
0 commit comments