edit: Report flags change properly
Print a message, send bulletin to owner. Affects ship key 'W', land unit key 'W', and plane key 'f'. The message is necessary to give the deity a chance to catch unexpected changes, e.g. a player modifying retreat conditions right before the deity edits them. Watching out for such changes is especially important with non-interactive edit. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
ef2e2d08a2
commit
4aa2f071ba
5 changed files with 86 additions and 1 deletions
|
@ -35,6 +35,7 @@
|
|||
|
||||
#include "item.h"
|
||||
#include "nat.h"
|
||||
#include "types.h"
|
||||
|
||||
extern void report_god_takes(char *, char *, natid);
|
||||
extern void report_god_gives(char *, char *, natid);
|
||||
|
@ -48,6 +49,8 @@ extern void divine_unit_change(struct empobj *, char *, int, int, char *, ...)
|
|||
ATTRIBUTE((format (printf, 5, 6)));
|
||||
#define divine_unit_change_quiet(unit, name, change, ...) \
|
||||
divine_unit_change((unit), (name), -(change), 0, __VA_ARGS__)
|
||||
extern void divine_flag_change(struct empobj *, char *, int, int,
|
||||
struct symbol *);
|
||||
extern void report_divine_gift(natid, struct ichrstr *, int, char *);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue