Skip to content

Commit

Permalink
give containers a separate header so that they have proper mstr #61
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Jan 11, 2021
1 parent 385a9ba commit 69caedb
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 14 deletions.
2 changes: 1 addition & 1 deletion scripts_src/arroyo/ailkbox.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1444,4 +1444,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"
26 changes: 26 additions & 0 deletions scripts_src/headers/containers.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**************************************************************************************
Should the trap go off for any reason by critter influence, then this procedure will
be called to deal damage to the critter, display a message stating how much damage
was taken, and remove the trap.
**************************************************************************************/

procedure Damage_Critter begin
variable Trap_Damage;

Trap_Damage:=random(MIN_DAMAGE,MAX_DAMAGE);

if (source_obj == dude_obj) then begin
critter_dmg(dude_obj,Trap_Damage,(DMG_explosion BWOR DMG_BYPASS_ARMOR));
/* display_msg("You set off the trap and were hit for "+Trap_Damage+" points of damage.); */
display_msg(mstr(166)+Trap_Damage+mstr(167));
end

else begin
critter_dmg(source_obj,Trap_Damage,(DMG_explosion BWOR DMG_BYPASS_ARMOR));
/* display_msg(Critter_Name+" set off the trap was hit for "+Trap_Damage+" points of damage"); */
display_msg(obj_name(source_obj)+mstr(168)+Trap_Damage+mstr(169));
end

/* The trap is now disarmed and should never go off again. */
set_local_var(LVAR_Trapped, STATE_INACTIVE);
end
2 changes: 1 addition & 1 deletion scripts_src/ncr/sidtbl.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1466,4 +1466,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/ncr/silocker.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1434,4 +1434,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/ncr/simbox.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1426,4 +1426,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/ncr/siptbox.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1418,4 +1418,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/ncr/siptbox2.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1380,4 +1380,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/ncr/sishelf1.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1292,4 +1292,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/ncr/sishelf2.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1294,4 +1294,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/ncr/sishelf3.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1282,4 +1282,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/rndenctr/ecbox.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1509,4 +1509,4 @@ procedure CreateContents begin
call CreateZone4;
end
end
#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/sierra/witrpbx1.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1424,4 +1424,4 @@ procedure Super_Set_Lockpick_Lock begin

call Lock_Door;
end
#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/template/containr.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1424,4 +1424,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/vault13/oiftlkr.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1424,4 +1424,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"
2 changes: 1 addition & 1 deletion scripts_src/vault13/oilocker.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -1426,4 +1426,4 @@ end



#include "../headers/doors2.h"
#include "../headers/containers.h"

0 comments on commit 69caedb

Please sign in to comment.