Some refactors, DMDoc and UT (#18365)

* dsfa

* accessories fix

* fixed "has been hit by" message with intent check

* sdfa
This commit is contained in:
Fluffy
2024-02-12 15:32:23 +00:00
committed by GitHub
parent 58dbaf8be6
commit 9afe761db3
620 changed files with 5733 additions and 5200 deletions
+5 -5
View File
@@ -12,14 +12,14 @@
throwforce = 0
lock_data = generateRandomString(round(material.integrity/50))
/obj/item/material/lock_construct/attackby(var/obj/item/I, var/mob/user)
if(istype(I,/obj/item/key))
var/obj/item/key/K = I
/obj/item/material/lock_construct/attackby(obj/item/attacking_item, mob/user)
if(istype(attacking_item, /obj/item/key))
var/obj/item/key/K = attacking_item
if(!K.key_data)
to_chat(user, "<span class='notice'>You fashion \the [I] to unlock \the [src]</span>")
to_chat(user, "<span class='notice'>You fashion \the [attacking_item] to unlock \the [src]</span>")
K.key_data = lock_data
else
to_chat(user, "<span class='warning'>\The [I] already unlocks something.</span>")
to_chat(user, "<span class='warning'>\The [attacking_item] already unlocks something.</span>")
return
..()