Mercurial > molko
comparison src/libmlk-rpg/rpg/battle-state-victory.c @ 411:d74f53299252
make: add basic GNU make support
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 07 Oct 2022 14:35:31 +0200 |
parents | 14ce7c4871e3 |
children | 8f59201dc76b |
comparison
equal
deleted
inserted
replaced
410:1bf7d6669f0a | 411:d74f53299252 |
---|---|
25 | 25 |
26 #include "battle-state-closing.h" | 26 #include "battle-state-closing.h" |
27 #include "battle-state-victory.h" | 27 #include "battle-state-victory.h" |
28 #include "battle-state.h" | 28 #include "battle-state.h" |
29 #include "battle.h" | 29 #include "battle.h" |
30 #include "rpg_p.h" | |
31 | 30 |
32 struct self { | 31 struct self { |
33 struct battle_state_victory data; | 32 struct battle_state_victory data; |
34 struct battle_state state; | 33 struct battle_state state; |
35 }; | 34 }; |
61 void | 60 void |
62 battle_state_victory_init(struct battle_state_victory *vic, struct battle *bt) | 61 battle_state_victory_init(struct battle_state_victory *vic, struct battle *bt) |
63 { | 62 { |
64 assert(bt); | 63 assert(bt); |
65 | 64 |
66 vic->text = _("Victory!"); | 65 vic->text = "Victory!"; |
67 | 66 |
68 vic->msg.lines = &vic->text; | 67 vic->msg.lines = &vic->text; |
69 vic->msg.linesz = 1; | 68 vic->msg.linesz = 1; |
70 vic->msg.theme = bt->theme; | 69 vic->msg.theme = bt->theme; |
71 vic->msg.flags = MESSAGE_FLAGS_AUTOMATIC | | 70 vic->msg.flags = MESSAGE_FLAGS_AUTOMATIC | |