Borg Bag Fixes and Refactors (#20578)

Fixes #19603
Fixes #20558

- bugfix: "Fixes plant bags - now uses storage_slot system, along with
other bag subtypes."
  - bugfix: "Borgs can interact with tables again."
  - refactor: "Refactors make_exact_fit to be a binary variable."
- refactor: "Refactors storage items to use make_exact_fit instead of
arbitrary max_storage_space values."
- refactor: "Refactors storage items to use defines for storage space."
  - bugfix: "Fixes monkey cube boxes having superfluous overlay."
  - rscadd: "Updates the progress bar toggle message."
- qol: "Objects that rotated 90 degrees in storage no longer rotate in
storage slots."
 
<img width="732" alt="dreamseeker_qRVkIlYN78"
src="https://github.com/user-attachments/assets/1226ed22-52c1-4965-a1b4-2290e56a2ab3"
/>
This commit is contained in:
Wowzewow (Wezzy)
2025-03-12 09:12:27 +00:00
committed by GitHub
parent 696eae5d7b
commit f046ebe584
39 changed files with 183 additions and 137 deletions
+3 -3
View File
@@ -239,9 +239,6 @@
to_chat(user, SPAN_WARNING("You need a better grip to do that!"))
return
if(!attacking_item.dropsafety())
return
if(reinforced && attacking_item.isscrewdriver())
remove_reinforced(attacking_item, user)
if(!reinforced)
@@ -340,6 +337,9 @@
health = maxhealth
visible_message("<b>[user]</b> repairs \the [src].", SPAN_NOTICE("You repair \the [src]."))
if(!attacking_item.dropsafety())
return
// Placing stuff on tables
if(user.unEquip(attacking_item, 0, loc)) //Loc is intentional here so we don't forceMove() items into oblivion
user.make_item_drop_sound(attacking_item)