e0717daa99
* This is to address [Issue 652](https://dev.sp-tarkov.com/SPT/Issues/issues/652). * Added messages with gift codes inside project/assets/database/locales/server/en.json * Update pmcchatresponse.json to include new pity message type. * Update logic in project/src/services/PmcChatResponseService.ts to now account for pity messages that are sent. The message's %giftcode% will now be replaced with a random gift code from assets\configs\gifts.json * Example: - ![image](/attachments/ade2686a-8dcb-4c11-9457-88e003a47416) Co-authored-by: Scuvy <Scuvy@gmail.com> Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com> Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/359 Co-authored-by: Scuvy <scuvy@noreply.dev.sp-tarkov.com> Co-committed-by: Scuvy <scuvy@noreply.dev.sp-tarkov.com>
26 lines
653 B
JSON
26 lines
653 B
JSON
{
|
|
"victim": {
|
|
"responseChancePercent": 7,
|
|
"responseTypeWeights": {
|
|
"positive": 7,
|
|
"negative": 2,
|
|
"plead": 2
|
|
},
|
|
"stripCapitalisationChancePercent": 20,
|
|
"allCapsChancePercent": 20,
|
|
"appendBroToMessageEndChancePercent": 35
|
|
},
|
|
"killer": {
|
|
"responseChancePercent": 16,
|
|
"responseTypeWeights": {
|
|
"positive": 5,
|
|
"negative": 2,
|
|
"plead": 2,
|
|
"pity": 1
|
|
},
|
|
"stripCapitalisationChancePercent": 20,
|
|
"allCapsChancePercent": 15,
|
|
"appendBroToMessageEndChancePercent": 15
|
|
}
|
|
}
|