Skip to content

Commit 9c9b9a4

Browse files
authored
Fix text (#82583)
2 parents 36bf7e3 + be10978 commit 9c9b9a4

File tree

12 files changed

+71
-63
lines changed

12 files changed

+71
-63
lines changed

data/json/monster_special_attacks/monster_attacks.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -704,12 +704,12 @@
704704
"effects": [ { "id": "dermatik", "duration": 86400, "affect_hit_bp": true } ],
705705
"cooldown": 25,
706706
"move_cost": 300,
707-
"hit_dmg_u": "The %1$s sinks its ovipositor into your %2$s!",
708-
"hit_dmg_npc": "The %1$s sinks its ovipositor into <npcname>'s %2$s!",
709-
"miss_msg_u": "The %s tries to land on you, but you dodge!",
710-
"miss_msg_npc": "The %1$s tries to land on <npcname>, but they dodge!",
711-
"no_dmg_msg_u": "The %1$s lands on your %2$s, but can't penetrate your armor!",
712-
"no_dmg_msg_npc": "The %1$s lands on <npcname>'s %2$s, but can't penetrate their armor!"
707+
"hit_dmg_u": "%1$s sinks its ovipositor into your %2$s!",
708+
"hit_dmg_npc": "%1$s sinks its ovipositor into <npcname>'s %2$s!",
709+
"miss_msg_u": "%s tries to land on you, but you dodge!",
710+
"miss_msg_npc": "%s tries to land on <npcname>, but they dodge!",
711+
"no_dmg_msg_u": "%1$s lands on your %2$s, but can't penetrate your armor!",
712+
"no_dmg_msg_npc": "%1$s lands on <npcname>'s %2$s, but can't penetrate their armor!"
713713
},
714714
{
715715
"type": "monster_attack",
@@ -732,12 +732,12 @@
732732
]
733733
},
734734
"effects": [ { "id": "venom_pain", "duration": 54000, "affect_hit_bp": true } ],
735-
"hit_dmg_u": "Using its filaments, the %s pulls you close.",
736-
"hit_dmg_npc": "Using its filaments, the %s pulls <npcname> close.",
737-
"miss_msg_u": "The %s spews filaments at you but misses.",
738-
"miss_msg_npc": "The %s spews filaments at <npcname> but misses.",
739-
"no_dmg_msg_u": "Using its filaments, the %s pulls you close but can't penetrate your armor.",
740-
"no_dmg_msg_npc": "Using its filaments, the %s pulls <npcname> close but can't penetrate their armor."
735+
"hit_dmg_u": "%s pulls you close using its filaments.",
736+
"hit_dmg_npc": "%s pulls <npcname> close using its filaments.",
737+
"miss_msg_u": "%s spews filaments at you but misses.",
738+
"miss_msg_npc": "%s spews filaments at <npcname> but misses.",
739+
"no_dmg_msg_u": "%s pulls you close using its filaments, but can't penetrate your armor.",
740+
"no_dmg_msg_npc": "%s pulls <npcname> close using its filaments, but can't penetrate their armor."
741741
},
742742
{
743743
"type": "monster_attack",
@@ -752,12 +752,12 @@
752752
"max_mul": 1.5,
753753
"condition": { "not": { "u_has_effect": "sectioned_filaments" } },
754754
"effects": [ { "id": "venom_pain", "duration": 54000, "affect_hit_bp": true } ],
755-
"hit_dmg_u": "The %s lashes at your %2$s.",
756-
"hit_dmg_npc": "The %s lashes at <npcname> %2$s.",
757-
"miss_msg_u": "The %s lashes at your %2$s but misses.",
758-
"miss_msg_npc": "The %s lashes at <npcname> %2$s but misses.",
759-
"no_dmg_msg_u": "The %s lashes at your %2$s but can't penetrate your armor.",
760-
"no_dmg_msg_npc": "The %s lashes at <npcname> %2$s but can't penetrate their armor."
755+
"hit_dmg_u": "%1$s lashes at your %2$s.",
756+
"hit_dmg_npc": "%1$s lashes at <npcname>'s %2$s.",
757+
"miss_msg_u": "%1$s lashes at your %2$s but misses.",
758+
"miss_msg_npc": "%1$s lashes at <npcname>'s %2$s but misses.",
759+
"no_dmg_msg_u": "%1$s lashes at your %2$s, but can't penetrate your armor.",
760+
"no_dmg_msg_npc": "%1$s lashes at <npcname>'s %2$s, but can't penetrate their armor."
761761
},
762762
{
763763
"type": "monster_attack",
@@ -779,12 +779,12 @@
779779
]
780780
},
781781
"effects": [ { "id": "venom_pain", "duration": 54000, "affect_hit_bp": true } ],
782-
"hit_dmg_u": "The %s wraps its filaments around your %2$s.",
783-
"hit_dmg_npc": "The %s wraps its filaments around <npcname>'s %2$s.",
784-
"miss_msg_u": "The %s tries to wrap its filaments around your %2$s but misses.",
785-
"miss_msg_npc": "The %s tries to wrap its filaments around <npcname> %2$s but misses.",
786-
"no_dmg_msg_u": "The %s wraps its filaments around your %2$s but can't penetrate your armor.",
787-
"no_dmg_msg_npc": "The %s wraps its filaments around <npcname>'s %2$s but can't penetrate their armor."
782+
"hit_dmg_u": "%1$s wraps its filaments around your %2$s.",
783+
"hit_dmg_npc": "%1$s wraps its filaments around <npcname>'s %2$s.",
784+
"miss_msg_u": "%1$s tries to wrap its filaments around your %2$s but misses.",
785+
"miss_msg_npc": "%1$s tries to wrap its filaments around <npcname>'s %2$s but misses.",
786+
"no_dmg_msg_u": "%1$s wraps its filaments around your %2$s, but can't penetrate your armor.",
787+
"no_dmg_msg_npc": "%1$s wraps its filaments around <npcname>'s %2$s, but can't penetrate their armor."
788788
},
789789
{
790790
"type": "monster_attack",
@@ -801,11 +801,11 @@
801801
"condition": {
802802
"and": [ { "u_has_flag": "GRAB_FILTER" }, { "npc_has_flag": "GRAB" }, { "not": { "u_has_effect": "sectioned_filaments" } } ]
803803
},
804-
"hit_dmg_u": "The %s pulls your %2$s in its orifice and starts crushing it.",
805-
"hit_dmg_npc": "The %s pulls <npcname>'s %2$s in its orifice and starts crushing it.",
806-
"miss_msg_u": "The %s tries to pulls your %2$s in its orifice but misses.",
807-
"miss_msg_npc": "The %s tries to pulls <npcname>'s %2$s in its orifice but misses.",
808-
"no_dmg_msg_u": "The %s pulls your %2$s in its orifice and starts crushing it but can't penetrate your armor.",
809-
"no_dmg_msg_npc": "The %s pulls <npcname>'s %2$s in its orifice and starts crushing it but can't penetrate their armor."
804+
"hit_dmg_u": "%1$s pulls your %2$s in its orifice and starts crushing it.",
805+
"hit_dmg_npc": "%1$s pulls <npcname>'s %2$s in its orifice and starts crushing it.",
806+
"miss_msg_u": "%1$s tries to pulls your %2$s in its orifice but misses.",
807+
"miss_msg_npc": "%1$s tries to pulls <npcname>'s %2$s in its orifice but misses.",
808+
"no_dmg_msg_u": "%1$s pulls your %2$s in its orifice and starts crushing it, but can't penetrate your armor.",
809+
"no_dmg_msg_npc": "%1$s pulls <npcname>'s %2$s in its orifice and starts crushing it, but can't penetrate their armor."
810810
}
811811
]

data/mods/MindOverMatter/monsters/animal_psychics.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
"spell_data": { "id": "telepathic_fear_blast_monster", "min_level": 2 },
326326
"cooldown": { "math": [ "9 + rand(18)" ] },
327327
"condition": { "not": { "u_has_flag": "NO_PSIONICS" } },
328-
"monster_message": "%1$'s third eye opens and it coos!"
328+
"monster_message": "%s's third eye opens and it coos!"
329329
},
330330
{ "id": "pigeon_aura", "type": "spell", "spell_data": { "id": "pigeon_aura", "min_level": 4 }, "cooldown": 200 }
331331
],

src/activity_item_handling.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ static std::vector<item_location> try_to_put_into_vehicle( Character &c, item_dr
260260
result.emplace_back( c.get_wielded_item() );
261261
} else {
262262
const std::string ter_name = here.name( where );
263-
add_msg( _( "The %s falls to the %s." ), it.tname(), ter_name );
263+
//~ %1$s - item name, %2$s - terrain name
264+
add_msg( _( "The %1$s falls to the %2$s." ), it.tname(), ter_name );
264265
result.push_back( here.add_item_or_charges_ret_loc( where, it ) );
265266
}
266267
}
@@ -295,24 +296,24 @@ static std::vector<item_location> try_to_put_into_vehicle( Character &c, item_dr
295296
case item_drop_reason::too_large:
296297
c.add_msg_if_player(
297298
n_gettext(
298-
"There's no room in your inventory for the %s, so you drop it into the %s's %s.",
299-
"There's no room in your inventory for the %s, so you drop them into the %s's %s.",
299+
"There's no room in your inventory for the %1$s, so you drop it into the %2$s's %3$s.",
300+
"There's no room in your inventory for the %1$s, so you drop them into the %2$s's %3$s.",
300301
dropcount ),
301302
it_name, veh.name, part_name
302303
);
303304
break;
304305
case item_drop_reason::too_heavy:
305306
c.add_msg_if_player(
306-
n_gettext( "The %s is too heavy to carry, so you drop it into the %s's %s.",
307-
"The %s are too heavy to carry, so you drop them into the %s's %s.", dropcount ),
307+
n_gettext( "The %1$s is too heavy to carry, so you drop it into the %2$s's %3$s.",
308+
"The %1$s are too heavy to carry, so you drop them into the %2$s's %3$s.", dropcount ),
308309
it_name, veh.name, part_name
309310
);
310311
break;
311312
case item_drop_reason::tumbling:
312313
c.add_msg_if_player(
313314
m_bad,
314-
n_gettext( "Your %s tumbles into the %s's %s.",
315-
"Your %s tumble into the %s's %s.", dropcount ),
315+
n_gettext( "Your %1$s tumbles into the %2$s's %3$s.",
316+
"Your %1$s tumble into the %2$s's %3$s.", dropcount ),
316317
it_name, veh.name, part_name
317318
);
318319
break;
@@ -3503,7 +3504,7 @@ bool generic_multi_activity_handler( player_activity &act, Character &you, bool
35033504
if( !check_only && you.is_npc() ) {
35043505
if( src_sorted.empty() ) {
35053506
add_msg( m_neutral,
3506-
_( "%1s failed to perform the %2$s activity because no suitable locations were found." ),
3507+
_( "%1$s failed to perform the %2$s activity because no suitable locations were found." ),
35073508
you.disp_name(), activity_to_restore.c_str() );
35083509
} else if( reason.no_path ) {
35093510
add_msg( m_neutral,

src/character.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7985,7 +7985,7 @@ ret_val<void> Character::can_wield( const item &it ) const
79857985
}
79867986

79877987
if( is_armed() && !can_unwield( weapon ).success() ) {
7988-
return ret_val<void>::make_failure( _( "The %s prevents you from wielding the %s." ),
7988+
return ret_val<void>::make_failure( _( "The %1$s prevents you from wielding the %2$s." ),
79897989
weapname(), it.tname() );
79907990
}
79917991
monster *mount = mounted_creature.get();
@@ -12410,7 +12410,7 @@ const Character *Character::get_book_reader( const item &book,
1241012410
// Low morale still permits skimming
1241112411
reasons.emplace_back( is_avatar() ?
1241212412
_( "What's the point of studying? (Your morale is too low!)" ) :
12413-
string_format( _( "What's the point of studying? (%s)'s morale is too low!)" ), disp_name() ) );
12413+
string_format( _( "What's the point of studying? (%s's morale is too low!)" ), disp_name() ) );
1241412414
return nullptr;
1241512415
}
1241612416
if( condition & read_condition_result::CANT_UNDERSTAND ) {

src/explosion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ static void do_blast( map *m, const Creature *source, const tripoint_bub_ms &p,
410410
add_msg_debug( debugmode::DF_EXPLOSION, "%s for %d raw, %d actual", hit_part_name, part_dam,
411411
res_dmg );
412412
if( res_dmg > 0 ) {
413-
pl->add_msg_if_player( m_bad, _( "Your %s is hit for %d damage!" ), hit_part_name, res_dmg );
413+
pl->add_msg_if_player( m_bad, _( "Your %1$s is hit for %2$d damage!" ), hit_part_name, res_dmg );
414414
}
415415
}
416416
}

src/handle_action.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,10 @@ static void grab()
777777
if( vp->has_loaded_furniture() ) {
778778
furn_str_id furn( vp->part_with_feature( "FURNITURE_TIEDOWN",
779779
true )->part().get_base().get_var( "tied_down_furniture" ) );
780-
if( query_yn( _( "Grab %s on %s?" ), furn->name(), veh_name ) ) {
780+
//~ %1$s - furniture name, %2$s - vehicle name
781+
if( query_yn( _( "Grab %1$s on %2$s?" ), furn->name(), veh_name ) ) {
781782
you.grab( object_type::FURNITURE_ON_VEHICLE, grabp - you.pos_bub() );
782-
add_msg( m_info, _( "You grab the %s loaded on the %s." ), furn->name(), veh_name );
783+
add_msg( m_info, _( "You grab the %1$s loaded on the %2$s." ), furn->name(), veh_name );
783784
return;
784785
}
785786
}
@@ -1075,7 +1076,8 @@ avatar::smash_result avatar::smash( tripoint_bub_ms &smashp )
10751076
if( !best_part_to_smash.first->smash_message.empty() ) {
10761077
add_msg( best_part_to_smash.first->smash_message, name_to_bash );
10771078
} else {
1078-
add_msg( _( "You use your %s to smash the %s." ),
1079+
//~ %1$s - bodypart name in accusative, %2$s - furniture/terrain name
1080+
add_msg( _( "You use your %1$s to smash the %2$s." ),
10791081
body_part_name_accusative( best_part_to_smash.first ), name_to_bash );
10801082
}
10811083
}

src/item_pocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ void item_pocket::handle_liquid_or_spill( Character &guy, const item *avoid )
821821
item i_copy( *iter );
822822
guy.i_add_or_drop( i_copy, 1, avoid, &*iter );
823823
iter = contents.erase( iter );
824-
guy.add_msg_if_player( m_warning, _( "The %s falls out of the %s." ), i_copy.display_name(),
824+
guy.add_msg_if_player( m_warning, _( "The %1$s falls out of the %2$s." ), i_copy.display_name(),
825825
get_name() );
826826
}
827827
}

src/iuse_actor.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4236,7 +4236,8 @@ bool place_trap_actor::is_allowed( Character &p, const tripoint_bub_ms &pos,
42364236
}
42374237
}
42384238
if( needs_neighbor_terrain && !has_neighbor( pos, needs_neighbor_terrain ) ) {
4239-
p.add_msg_if_player( m_info, _( "The %s needs a %s adjacent to it." ), name,
4239+
//~ %1$s - trap name, %2$s - terrain name
4240+
p.add_msg_if_player( m_info, _( "The %1$s needs a %2$s adjacent to it." ), name,
42404241
needs_neighbor_terrain.obj().name() );
42414242
return false;
42424243
}
@@ -4249,6 +4250,7 @@ bool place_trap_actor::is_allowed( Character &p, const tripoint_bub_ms &pos,
42494250
: _( "You can't place a %s there. It contains a trap already." ),
42504251
name );
42514252
} else {
4253+
//~ %s - trap name
42524254
p.add_msg_if_player( m_bad, _( "You trigger a %s!" ), existing_trap.name() );
42534255
existing_trap.trigger( pos, p );
42544256
}

src/magic_spell_effect.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -982,15 +982,15 @@ static void handle_remove_fd_fatigue_field( const std::pair<field, tripoint_bub_
982982
caster.add_effect( effect_teleglow, 5_hours );
983983
break;
984984
case 3:
985-
std::string message_prefix = "A nearby";
986-
987-
if( caster.sees( here, field_position ) ) {
988-
message_prefix = "The";
985+
if( sees_field ) {
986+
caster.add_msg_if_player( m_bad, _( "The %s pulls you in as it closes and ejects you violently!" ),
987+
intensity_name );
988+
} else {
989+
caster.add_msg_if_player( m_bad,
990+
_( "A nearby %s pulls you in as it closes and ejects you violently!" ),
991+
intensity_name );
989992
}
990993

991-
caster.add_msg_if_player( m_bad,
992-
_( "%s %s pulls you in as it closes and ejects you violently!" ),
993-
message_prefix, intensity_name );
994994
caster.as_character()->hurtall( 10, nullptr );
995995
caster.add_effect( effect_teleglow, 630_minutes );
996996
teleport::teleport_creature( caster );

src/monattack.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,8 @@ static void poly_keep_speed( monster &mon, const mtype_id &id )
20472047

20482048
static bool blobify( monster &blob, monster &target )
20492049
{
2050-
add_msg_if_player_sees( target, m_warning, _( "%s is engulfed by %s!" ),
2050+
//~ %1$s and %2$s - monster names
2051+
add_msg_if_player_sees( target, m_warning, _( "%1$s is engulfed by %2$s!" ),
20512052
target.disp_name(), blob.disp_name() );
20522053
switch( target.get_size() ) {
20532054
case creature_size::tiny:

0 commit comments

Comments
 (0)