mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
Some refactors, DMDoc and UT (#18365)
* dsfa * accessories fix * fixed "has been hit by" message with intent check * sdfa
This commit is contained in:
@@ -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
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user