From 5f0958c121a246d445507313984358ff8a6df3fa Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 10 Nov 2013 17:13:41 +0000 Subject: Adjust reputation on NPC kills, refresh reputation window if required. --- src/game/base/faction.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/game/base/faction.h') diff --git a/src/game/base/faction.h b/src/game/base/faction.h index b459899..3f6a1e5 100644 --- a/src/game/base/faction.h +++ b/src/game/base/faction.h @@ -67,6 +67,16 @@ public: faction_color_second.assign(color_second); } + /** + * @brief adjust player reputation for a kill of a member of this faction + */ + void apply_kill(core::Player *player) const; + + /** + * @brief adjust player reputation for buying from/selling to this faction + */ + void apply_sale(core::Player *player, const float amount) const; + /* --- static ----------------------------------------------------- */ /** @@ -87,6 +97,7 @@ public: * @brief apply default reputation * */ static void apply_default(core::Reputation & reputation); + static inline const core::InfoType *infotype() { return faction_infotype; -- cgit v1.2.3