mirror of
https://github.com/zoriya/ForecastingVillage.git
synced 2026-06-06 03:45:34 +00:00
The lumberjack now gives the shield upgrade
This commit is contained in:
+10
-1
@@ -9,17 +9,26 @@
|
||||
#include <components/dialog_holder.h>
|
||||
#include "engine.h"
|
||||
|
||||
void lumberjack_delete(gc_engine *engine)
|
||||
{
|
||||
struct dialog_holder *dialog = dialog_get_current(engine);
|
||||
|
||||
dialog->text[3] = NULL;
|
||||
}
|
||||
|
||||
bool lumberjack_yes(gc_engine *engine, gc_entity *entity, \
|
||||
gc_vector2 pos, enum gc_mousekeys key)
|
||||
{
|
||||
gc_entity *player = engine->scene->get_entity(engine->scene, 50);
|
||||
struct dialog_holder *dialog = dialog_get_current(engine);
|
||||
struct dialog_line *di;
|
||||
struct player_component *inv;
|
||||
|
||||
if (!player)
|
||||
return (false);
|
||||
inv = GETCMP(player, player_component);
|
||||
inv->inventory_upgrades[3] = true;
|
||||
// dialog->
|
||||
di = dialog_add_line(dialog, NULL, "You gained the shield upgrade!", NULL);
|
||||
di->callback = &lumberjack_delete;
|
||||
return (true);
|
||||
}
|
||||
Reference in New Issue
Block a user