summaryrefslogtreecommitdiff
path: root/src/q_bounty.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-02-13 13:56:52 +0100
committerBardur Arantsson <bardur@scientician.net>2016-02-13 13:56:52 +0100
commit4d237a87eb76eb4c6bcc5d8cbf7544a8f3184f30 (patch)
tree5e87923522f444880a6be4239e162c16312408a4 /src/q_bounty.hpp
parentf13c5091e4864e957c83a35621365c8b510b80ba (diff)
Reduce file-open/close boilerplate and simplify formatting
- We introduce a show_string() which will allow us to go without actually writing a file if we want to later. - Use cppformat to simplify the output formatting.
Diffstat (limited to 'src/q_bounty.hpp')
-rw-r--r--src/q_bounty.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/q_bounty.hpp b/src/q_bounty.hpp
index 234c036d..450ca8bd 100644
--- a/src/q_bounty.hpp
+++ b/src/q_bounty.hpp
@@ -2,7 +2,9 @@
#include "h-basic.h"
+#include <string>
+
extern bool_ quest_bounty_init_hook(int q_idx);
extern bool_ quest_bounty_drop_item();
extern bool_ quest_bounty_get_item();
-extern bool_ quest_bounty_describe(FILE *fff);
+extern std::string quest_bounty_describe();