mirror of
https://github.com/goonstation/goonstation-2016.git
synced 2026-08-23 05:56:34 +01:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
/obj/artifact/borgifier
|
||||
name = "artifact human2cyborg converter"
|
||||
associated_datum = /datum/artifact/borgifier
|
||||
|
||||
/datum/artifact/borgifier
|
||||
associated_object = /obj/artifact/borgifier
|
||||
rarity_class = 3
|
||||
validtypes = list("ancient")
|
||||
validtriggers = list(/datum/artifact_trigger/force,/datum/artifact_trigger/electric,/datum/artifact_trigger/heat,
|
||||
/datum/artifact_trigger/radiation,/datum/artifact_trigger/carbon_touch)
|
||||
activated = 0
|
||||
react_xray = list(13,60,80,6,"COMPLEX")
|
||||
touch_descriptors = list("You seem to have a little difficulty taking your hand off its surface.")
|
||||
var/converting = 0
|
||||
var/list/work_sounds = list('sound/effects/bloody_stab.ogg','sound/effects/clang.ogg','sound/effects/airbridge_dpl.ogg','sound/effects/splat.ogg','sound/misc/loudcrunch2.ogg','sound/effects/attackblob.ogg')
|
||||
|
||||
effect_touch(var/obj/O,var/mob/living/user)
|
||||
if (..())
|
||||
return
|
||||
if (!user)
|
||||
return
|
||||
if (converting)
|
||||
return
|
||||
if (istype(user,/mob/living/carbon/human/))
|
||||
O.visible_message("<span style=\"color:red\"><b>[O]</b> suddenly pulls [user.name] inside and slams shut!</span>")
|
||||
user.emote("scream")
|
||||
user.set_loc(O.loc)
|
||||
converting = 1
|
||||
var/loops = rand(10,20)
|
||||
while (loops > 0)
|
||||
loops--
|
||||
random_brute_damage(user, 15)
|
||||
user.paralysis = 5
|
||||
playsound(user.loc, pick(work_sounds), 50, 1, -1)
|
||||
sleep(4)
|
||||
|
||||
var/bdna = null // For forensics (Convair880).
|
||||
var/btype = null
|
||||
if (user.bioHolder.Uid && user.bioHolder.bloodType)
|
||||
bdna = user.bioHolder.Uid
|
||||
btype = user.bioHolder.bloodType
|
||||
var/turf/T = find_loc(user)
|
||||
gibs(T, null, null, bdna, btype)
|
||||
|
||||
ArtifactLogs(user, null, O, "touched", "robotizing user", 0) // Added (Convair880).
|
||||
|
||||
if (ismonkey(user))
|
||||
user.ghostize()
|
||||
var/robopath = pick(/obj/machinery/bot/guardbot,/obj/machinery/bot/secbot,
|
||||
/obj/machinery/bot/medbot,/obj/machinery/bot/firebot,/obj/machinery/bot/cleanbot,
|
||||
/obj/machinery/bot/floorbot)
|
||||
new robopath (T)
|
||||
qdel(user)
|
||||
else
|
||||
var/mob/living/carbon/human/M = user
|
||||
M.Robotize_MK2(1)
|
||||
score_cyborgsmade += 1
|
||||
converting = 0
|
||||
else if (istype(user,/mob/living/silicon/))
|
||||
boutput(user, "<span style=\"color:red\">An imperious voice rings out in your head... \"<b>HUNT BIOLOGICALS FOR UPGRADING\"</span>")
|
||||
else
|
||||
return
|
||||
Reference in New Issue
Block a user