Allow custom 'no items' response
This commit is contained in:
@@ -53,7 +53,7 @@ Which shop
|
|||||||
Unused
|
Unused
|
||||||
Unused
|
Unused
|
||||||
Name of shop
|
Name of shop
|
||||||
Unused
|
Response if nothing for sale ...
|
||||||
Receive Training
|
Receive Training
|
||||||
Unused
|
Unused
|
||||||
Unused
|
Unused
|
||||||
|
|||||||
@@ -888,10 +888,17 @@ void handle_talk_node(int which_talk_entry) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
case eTalkNode::SHOP:
|
case eTalkNode::SHOP:
|
||||||
if(!start_shop_mode(b,a,save_talk_str1,true))
|
if(!start_shop_mode(b,a,save_talk_str1,true)){
|
||||||
save_talk_str1 = "There is nothing to buy from " + save_talk_str1 + ".";
|
// Second string of shop talk node: Custom message for when shop is empty
|
||||||
else
|
if(!save_talk_str2.empty()){
|
||||||
|
save_talk_str1 = save_talk_str2;
|
||||||
|
save_talk_str2 = "";
|
||||||
|
}else{
|
||||||
|
save_talk_str1 = "There is nothing available to buy.";
|
||||||
|
}
|
||||||
|
}else{
|
||||||
can_save_talk = false;
|
can_save_talk = false;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
case eTalkNode::JOB_BANK:
|
case eTalkNode::JOB_BANK:
|
||||||
if(a < univ.party.job_banks.size() && univ.party.job_banks[a].anger >= 50) {
|
if(a < univ.party.job_banks.size() && univ.party.job_banks[a].anger >= 50) {
|
||||||
|
|||||||
Reference in New Issue
Block a user