Mercurial > molko
comparison src/libmlk-rpg/rpg/battle-state-lost.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-lost.h" | 27 #include "battle-state-lost.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_lost data; | 32 struct battle_state_lost data; |
34 struct battle_state state; | 33 struct battle_state state; |
35 }; | 34 }; |
60 battle_state_lost_init(struct battle_state_lost *lost, struct battle *bt) | 59 battle_state_lost_init(struct battle_state_lost *lost, struct battle *bt) |
61 { | 60 { |
62 assert(lost); | 61 assert(lost); |
63 assert(bt); | 62 assert(bt); |
64 | 63 |
65 lost->text = _("You have been defeated..."); | 64 lost->text = "You have been defeated..."; |
66 | 65 |
67 lost->msg.lines = &lost->text; | 66 lost->msg.lines = &lost->text; |
68 lost->msg.linesz = 1; | 67 lost->msg.linesz = 1; |
69 lost->msg.theme = bt->theme; | 68 lost->msg.theme = bt->theme; |
70 lost->msg.flags = MESSAGE_FLAGS_AUTOMATIC | | 69 lost->msg.flags = MESSAGE_FLAGS_AUTOMATIC | |