vaurca vestigial arms (#8280)

Allows Vaurca to hold small items in their lil vestigial arms. The suit slot counts as pseudo-arms.
This commit is contained in:
Geeves
2020-02-22 21:52:02 +02:00
committed by GitHub
parent 2cb4823721
commit c0ff0d90d6
4 changed files with 15 additions and 1 deletions
+2
View File
@@ -371,6 +371,8 @@ var/list/global/slot_flags_enumeration = list(
if( w_class > 2 && !(slot_flags & SLOT_POCKET) )
return 0
if(slot_s_store)
if(isvaurca(H) && src.w_class <= ITEMSIZE_SMALL)
return TRUE
if(!H.wear_suit && (slot_wear_suit in mob_equip))
if(!disable_warning)
to_chat(H, "<span class='warning'>You need a suit before you can attach this [name].</span>")
@@ -106,6 +106,11 @@
msg += "<span class='warning'>[T.He] [T.is] carrying \icon[s_store] [s_store.gender==PLURAL?"some":"a"] [(s_store.blood_color != "#030303") ? "blood" : "oil"]-stained <a href='?src=\ref[src];lookitem_desc_only=\ref[s_store]'>[s_store.name]</a> on [T.his] [wear_suit.name]!</span>\n"
else
msg += "[T.He] [T.is] carrying \icon[s_store] <a href='?src=\ref[src];lookitem_desc_only=\ref[s_store]'>\a [s_store]</a> on [T.his] [wear_suit.name].\n"
else if(s_store && !skipsuitstorage)
if(s_store.blood_DNA)
msg += "<span class='warning'>[T.He] [T.is] carrying \icon[s_store] [s_store.gender==PLURAL?"some":"a"] [(s_store.blood_color != "#030303") ? "blood" : "oil"]-stained <a href='?src=\ref[src];lookitem_desc_only=\ref[s_store]'>[s_store.name]</a> on [T.his] chest!</span>\n"
else
msg += "[T.He] [T.is] carrying \icon[s_store] <a href='?src=\ref[src];lookitem_desc_only=\ref[s_store]'>\a [s_store]</a> on [T.his] chest.\n"
//back
if(back)
@@ -91,7 +91,8 @@ This saves us from having to call add_fingerprint() any time something is put in
if (wear_suit.flags_inv & HIDEJUMPSUIT)
update_uniform = 1
if(s_store)
drop_from_inventory(s_store)
if(!(isvaurca(src) && s_store.w_class <= ITEMSIZE_SMALL))
drop_from_inventory(s_store)
wear_suit = null
update_inv_wear_suit()
if (update_uniform)
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- rscadd: "Allows Vaurca to carry small items in their suit slot, using their smol vestigial arms."