Skip to content

Commit

Permalink
Add schematic for upgrading to Improved Flamer
Browse files Browse the repository at this point in the history
- There was no way to obtain this gun without discovering Algernon, but it's important for Big Guns progression
  • Loading branch information
phobos2077 committed May 29, 2024
1 parent c1a487d commit 093410e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
14 changes: 14 additions & 0 deletions root/data/config/pbs_craft.ini
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,20 @@ input2=38:1 ; SEC
input3=98:1 ; Junk


[Recipe IMPROVED_FLAMETHROWER]
output=400
pic_w=175
pic_h=63
schema=1
time=300 ; 5 h 00 m
category=10 ; Weapons
tool1=308 ; SUPER_TOOL_KIT
skill1=13:100 ; REPAIR
skill2=1:100 ; BIG_GUNS
input1=11:1 ; Regular Flamer
input2=98:2 ; Junk


[Recipe DEATHCLAW_GAUNTLET]
output=640
pic_w=82
Expand Down
2 changes: 1 addition & 1 deletion scripts_src/_pbs_craft/craft_schematics.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ procedure check_restock_craft_schematic(variable schematicPid, variable craftedI

if (isKnown or random(1, 100) > probability) then return;

display_msg("spawning " + schematicPid);
ndebug("spawning crafting schematic " + schematicPid + " for item " + craftedItemPid);
item := create_object(schematicPid, 0, 0);
set_weapon_ammo_count(item, craftedItemPid); // set count before adding to prevent stacking
add_obj_to_inven(self_obj, item);
Expand Down
2 changes: 1 addition & 1 deletion scripts_src/_pbs_headers/ecco_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
#define PID_PBS_LASER_PISTOL_LT (647)
#define PID_PBS_PLASMA_LANCE (648)
#define PID_PBS_CRAFT_SCHEMA (649)
#define PID_PBS_CRAFT_SCHEMA_T2 (649)
#define PID_PBS_CRAFT_SCHEMA_T2 (650)

// new scenery
#define PID_PBS_SPIKE_TRAP (0x02000000 + 2335)
Expand Down
2 changes: 2 additions & 0 deletions scripts_src/newreno/nieldbx2.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#define LVAR_Restock_Time (0)
#define LVAR_Restock_Time_Fix (1) //added by killap

#include "../_pbs_craft/craft_schematics.h"
#include "../_pbs_headers/ecco_ids.h"

/* Standard Script Procedures */
Expand Down Expand Up @@ -65,6 +66,7 @@ procedure map_enter_p_proc begin
check_restock_item(PID_BOZAR, 1, 1, 25)
check_restock_item(PID_INDEPENDENT, 1, 1, 20) // new
check_restock_item(PID_PBS_MGL, 1, 1, 25)
call check_restock_craft_schematic(PID_PBS_CRAFT_SCHEMA_T2, PID_IMPROVED_FLAMETHROWER, 100);
call restore_critical_items(tmp_box);
set_local_var(LVAR_Restock_Time, (random(2,4) * ONE_GAME_DAY) + game_time);
end
Expand Down

0 comments on commit 093410e

Please sign in to comment.