Inflatables Buff (#11537)

This commit is contained in:
Geeves
2021-04-22 12:02:11 +02:00
committed by GitHub
parent 679d81440b
commit e3ac75bcbb
26 changed files with 202 additions and 183 deletions
+1 -1
View File
@@ -174,7 +174,7 @@
return
/obj/item/toy/balloon/attackby(obj/item/W as obj, mob/user as mob)
if(can_puncture(W))
if(W.can_puncture())
burst()
/obj/item/toy/balloon/latex
@@ -214,7 +214,7 @@ var/list/tape_roll_applications = list()
breaktape(null, user)
/obj/item/tape/proc/breaktape(obj/item/W as obj, mob/user as mob)
if(user.a_intent == I_HELP && ((!can_puncture(W) && src.allowed(user))))
if(user.a_intent == I_HELP && ((!W.can_puncture() && src.allowed(user))))
to_chat(user, SPAN_NOTICE("You can't break \the [src] with that!"))
return
user.visible_message(SPAN_NOTICE("[user] breaks \the [src]!"))
@@ -22,6 +22,7 @@
var/max_w_class = ITEMSIZE_NORMAL //Max size of objects that this object can store (in effect only if can_hold isn't set)
var/max_storage_space = 8 //The sum of the storage costs of all the items in this storage item.
var/storage_slots //The number of storage slots in this container.
var/force_column_number // the number of columns the storage item will appear to have
var/obj/screen/storage/boxes
var/obj/screen/storage/storage_start //storage UI
var/obj/screen/storage/storage_continue
@@ -294,7 +295,7 @@
space_orient_objs(numbered_contents, defer_overlays)
else
var/row_num = 0
var/col_count = min(7,storage_slots) -1
var/col_count = force_column_number ? force_column_number : min(7, storage_slots) - 1
if (adjusted_contents > 7)
row_num = round((adjusted_contents-1) / 7) // 7 is the maximum allowed width.
src.slot_orient_objs(row_num, col_count, numbered_contents)