Skip to content

Commit

Permalink
vcharry: fix turning Harry in broken due to checking the wrong gvar
Browse files Browse the repository at this point in the history
  • Loading branch information
phobos2077 committed Aug 10, 2023
1 parent 7f1be4b commit c51d1ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts_src/valtcity/vcharry.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "../headers/command.h"
#include "../headers/modreact.h"

#define JAIL_TILE (21915)

/* Standard Script Procedures */
procedure start;
Expand Down Expand Up @@ -130,8 +131,8 @@ procedure map_enter_p_proc begin
set_self_ai(AI_TOUGH_CITIZEN);

//added by killap - expansion pack (Village)
if (global_var(GVAR_QUEST_VAULT_SERVANT) == SERVANT_TURNED_IN_HARRY) then begin
critter_attempt_placement(self_obj, 21915, 0);
if (global_var(GVAR_VAULT_SERVANT) == SERVANT_TURNED_IN_HARRY and self_tile != JAIL_TILE) then begin
critter_attempt_placement(self_obj, JAIL_TILE, 0);
inven_unwield(self_obj);
move_obj_inven_to_obj(self_obj, tile_contains_pid_obj(12112,dude_elevation,152));
move_obj_inven_to_obj(vault_city_harry_box, tile_contains_pid_obj(12112,dude_elevation,152));
Expand Down Expand Up @@ -205,7 +206,7 @@ procedure talk_p_proc begin
GetReaction;

//added by killap - expansion pack (Village)
if (global_var(GVAR_QUEST_VAULT_SERVANT) == SERVANT_TURNED_IN_HARRY) then
if (global_var(GVAR_VAULT_SERVANT) == SERVANT_TURNED_IN_HARRY) then
float_msg(self_obj, message_str(SCRIPT_VCHARRY, random(145, 149)), FLOAT_MSG_YELLOW);
//end
else if town_rep_is_vilified then begin
Expand Down

0 comments on commit c51d1ed

Please sign in to comment.