Skip to content

Commit becf3b2

Browse files
committed
Changed restock time display
1 parent a228f4c commit becf3b2

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

data/json/npcs/godco/members/NPC_Kostas_Walsman.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@
168168
"id": "TALK_GODCO_Kostas_Interval",
169169
"type": "talk_topic",
170170
"dynamic_line": [
171-
"I'm afraid I haven't gone out there for a while, maybe come back on <restock_time_point>. These are all I have, care to take a look?",
172-
"Sorry these are all I have. However I'll be back from my next run on <restock_time_point>. Care to take a look in the meanwhile?"
171+
"I'm afraid I haven't gone out there for a while, maybe come back after <restock_time_point>. These are all I have, care to take a look?",
172+
"Sorry these are all I have. However I'll be back from my next run after <restock_time_point>. Care to take a look in the meanwhile?"
173173
],
174174
"responses": [
175175
{ "text": "Alright, I'll take a look.", "effect": "start_trade", "topic": "TALK_GODCO_Kostas_1" },

data/json/npcs/lumbermill_employees/TALK_lumbermill_merchant.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
{
7676
"type": "talk_topic",
7777
"id": "TALK_LUMBERMILL_RESTOCK",
78-
"dynamic_line": "Workers will bring in a new shipment of lumber on <restock_time_point>."
78+
"dynamic_line": "Workers will bring in a new shipment of lumber after <restock_time_point>."
7979
},
8080
{
8181
"type": "talk_topic",

data/json/npcs/robofac/robofac_intercom/robofac_intercom.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,8 @@
10691069
"id": "TALK_ROBOFAC_INTERCOM_ASK_INTERVAL",
10701070
"type": "talk_topic",
10711071
"dynamic_line": [
1072-
"We have no other disposable equipment right now. You'll have to come back on <restock_time_point>.",
1073-
"No. Come back on <restock_time_point>."
1072+
"We have no other disposable equipment right now. You'll have to come back after <restock_time_point>.",
1073+
"No. Come back after <restock_time_point>."
10741074
],
10751075
"responses": [ { "text": "Right…", "topic": "TALK_ROBOFAC_INTERCOM_SERVICES" } ]
10761076
}

data/json/npcs/scrap_trader/scrap_trader.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
{
364364
"id": "TALK_SCRAP_TRADER_ASK_INTERVAL",
365365
"type": "talk_topic",
366-
"dynamic_line": "Nope, although I have a really good claim by the river. Gonna go fetch them soon, be right back on <restock_time_point>.",
366+
"dynamic_line": "Nope, although I have a really good claim by the river. Gonna go fetch them soon, be right back after <restock_time_point>.",
367367
"responses": [ { "text": "Well, good luck.", "topic": "TALK_NPC_SCRAP_TRADER" } ]
368368
}
369369
]

data/json/npcs/tacoma_ranch/NPC_ranch_scavenger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{
4343
"type": "talk_topic",
4444
"id": "TALK_RANCH_SCAVENGER_ASK_RESTOCK",
45-
"dynamic_line": "Nope, current run hasn't returned yet. Come back on <restock_time_point>. You might find something you like.",
45+
"dynamic_line": "Nope, current run hasn't returned yet. Come back after <restock_time_point>. You might find something you like.",
4646
"responses": [ { "text": "Alright, thanks.", "topic": "TALK_RANCH_SCAVENGER_1" } ]
4747
},
4848
{

src/npctalk.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,13 +2452,15 @@ void parse_tags( std::string &phrase, const_talker const &u, const_talker const
24522452
} else if( get_option<bool>( "SHOW_MONTHS" ) && calendar::year_length() == 364_days ) {
24532453
std::pair<month, int> month_day = month_and_day( guy->restock_time() );
24542454
//~ 1 is month, 2 is day
2455-
phrase.replace( fa, l, string_format( pgettext( "month and day", "%1$s %2$d" ),
2456-
to_string( month_day.first ), month_day.second ) );
2455+
phrase.replace( fa, l, string_format( pgettext( "month, day and time", "%1$s %2$d, %3$s" ),
2456+
to_string( month_day.first ), month_day.second,
2457+
to_string_time_of_day( guy->restock_time() ) ) );
24572458
} else {
24582459
//~ 1 is season, 2 is day
2459-
phrase.replace( fa, l, string_format( pgettext( "season and day", "%1$s %2$d" ),
2460+
phrase.replace( fa, l, string_format( pgettext( "season, day, and time", "%1$s %2$d, %3$s" ),
24602461
calendar::name_season( season_of_year( guy->restock_time() ) ),
2461-
day_of_season<int>( guy->restock_time() ) ) );
2462+
day_of_season<int>( guy->restock_time() ) + 1,
2463+
to_string_time_of_day( guy->restock_time() ) ) );
24622464
}
24632465
} else if( tag.find( "<u_val:" ) == 0 ) {
24642466
//adding a user variable to the string

0 commit comments

Comments
 (0)