Skip to content

Commit

Permalink
Fix craft schema condition
Browse files Browse the repository at this point in the history
- Add tool to Smitty (to be able to craft Laser Pistol)
  • Loading branch information
phobos2077 committed May 19, 2024
1 parent 1023f43 commit 6e74ad3
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 1 deletion.
21 changes: 21 additions & 0 deletions proto_src/items/misc/00000649.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pid: 649
messageId: 64900
name: Schematics
description: 'A paper with some crude drawings and instructions for creating: %s.'
fid: 41
lightDistance: 0
lightIntensity: 0
flags: '0xa0000008'
extendedFlags: '0xa800'
sid: -1
type: ITEM_TYPE_MISC
material: 1
size: 0
weight: 0
cost: 100
inventoryFid: 117440847
soundId: '0'
miscData:
powerTypePid: -1
powerType: 0
charges: 168652658
21 changes: 21 additions & 0 deletions proto_src/items/misc/00000650.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pid: 650
messageId: 65000
name: Blueprints
description: 'A set of blueprints and instructions for creating: %s.'
fid: 41
lightDistance: 0
lightIntensity: 0
flags: '0xa0000008'
extendedFlags: '0xa800'
sid: -1
type: ITEM_TYPE_MISC
material: 1
size: 1
weight: 0
cost: 300
inventoryFid: 117440821
soundId: '0'
miscData:
powerTypePid: -1
powerType: 0
charges: 168652658
Binary file modified root/data/proto/items/00000650.pro
Binary file not shown.
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 @@ -15,7 +15,7 @@ procedure get_craft_schemas begin
return craft_schemas_map;
end

#define schema_is_known(id) ((get_array(craft_schemas_map, id) != 0) if craft_schemas_map else 0)
#define schema_is_known(id) get_array(get_craft_schemas, id)
#define schema_set_as_known(id) set_array(get_craft_schemas, id, 1)

/**
Expand Down
1 change: 1 addition & 0 deletions scripts_src/den/dismibox.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ procedure map_enter_p_proc begin
check_restock_item(PID_KNIFE, 1, 1, 40)
check_restock_item(PID_MOLOTOV_COCKTAIL, 1, 3, 40)
check_restock_item(PID_MICRO_FUSION_CELL, 1, 6, 40)
check_restock_item(PID_MULTI_TOOL, 1, 1, 70) // pbs
check_restock_item(PID_SMALL_ENERGY_CELL, 1, 4, 70) // pbs
check_restock_item(PID_PUMP_PARTS, 1, 5, 70) // pbs
check_restock_item(PID_ROPE, 1, 3, 50) // pbs
Expand Down

0 comments on commit 6e74ad3

Please sign in to comment.