Skip to content

Commit adfc3ea

Browse files
authored
remove u_lose_faction_trust (#80669)
1 parent 9eb4a7a commit adfc3ea

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

doc/JSON/EFFECT_ON_CONDITION.md

-4
Original file line numberDiff line numberDiff line change
@@ -4082,10 +4082,6 @@ adds [ your strength stat ] amount of faction trust
40824082
{ "u_add_faction_trust": { "math": [ "u_val('strength')" ] } }
40834083
```
40844084

4085-
4086-
#### `u_lose_faction_trust`
4087-
same as `u_add_faction_trust`, not used in favor of `u_add_faction_trust` with negative number
4088-
40894085
#### `u_message``npc_message``message`
40904086
Display a text message in the log. `u_message` and `npc_message` display a message only if you or NPC is avatar. `message` always displays a message.
40914087

src/npctalk.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -7001,15 +7001,6 @@ talk_effect_fun_t::func f_add_faction_trust( const JsonObject &jo, std::string_v
70017001
};
70027002
}
70037003

7004-
talk_effect_fun_t::func f_lose_faction_trust( const JsonObject &jo,
7005-
std::string_view member, std::string_view )
7006-
{
7007-
dbl_or_var dov = get_dbl_or_var( jo, member );
7008-
return [dov]( dialogue & d ) {
7009-
d.actor( true )->get_faction()->trusts_u -= dov.evaluate( d );
7010-
};
7011-
}
7012-
70137004
talk_effect_fun_t::func f_custom_light_level( const JsonObject &jo,
70147005
std::string_view member, std::string_view )
70157006
{
@@ -7888,7 +7879,6 @@ parsers = {
78887879
{ "location_variable_adjust", jarg::member, &talk_effect_fun::f_location_variable_adjust },
78897880
{ "u_buy_monster", jarg::member, &talk_effect_fun::f_u_buy_monster },
78907881
{ "u_add_faction_trust", jarg::member | jarg::array, &talk_effect_fun::f_add_faction_trust },
7891-
{ "u_lose_faction_trust", jarg::member | jarg::array, &talk_effect_fun::f_lose_faction_trust },
78927882
{ "npc_first_topic", jarg::member, &talk_effect_fun::f_npc_first_topic },
78937883
{ "sound_effect", jarg::member, &talk_effect_fun::f_sound_effect },
78947884
{ "give_achievement", jarg::member, &talk_effect_fun::f_give_achievment },

0 commit comments

Comments
 (0)