|
|
|
@@ -8,7 +8,9 @@
|
|
|
|
|
desc = "A wicked curved blade of alien origin, recovered from the ruins of a vast city."
|
|
|
|
|
icon = 'icons/obj/wizard.dmi'
|
|
|
|
|
icon_state = "render"
|
|
|
|
|
item_state = "render"
|
|
|
|
|
item_state = "knife"
|
|
|
|
|
lefthand_file = 'icons/mob/inhands/equipment/kitchen_lefthand.dmi'
|
|
|
|
|
righthand_file = 'icons/mob/inhands/equipment/kitchen_righthand.dmi'
|
|
|
|
|
force = 15
|
|
|
|
|
throwforce = 10
|
|
|
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
|
|
@@ -196,258 +198,6 @@
|
|
|
|
|
H.equip_to_slot_or_del(new /obj/item/twohanded/spear(H), slot_back)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/////////////////////Multiverse Blade////////////////////
|
|
|
|
|
|
|
|
|
|
/obj/item/multisword
|
|
|
|
|
name = "multiverse sword"
|
|
|
|
|
desc = "A weapon capable of conquering the universe and beyond. Activate it to summon copies of yourself from others dimensions to fight by your side."
|
|
|
|
|
icon = 'icons/obj/items_and_weapons.dmi'
|
|
|
|
|
icon_state = "multiverse"
|
|
|
|
|
item_state = "multiverse"
|
|
|
|
|
lefthand_file = 'icons/mob/inhands/weapons/swords_lefthand.dmi'
|
|
|
|
|
righthand_file = 'icons/mob/inhands/weapons/swords_righthand.dmi'
|
|
|
|
|
hitsound = 'sound/weapons/bladeslice.ogg'
|
|
|
|
|
flags_1 = CONDUCT_1
|
|
|
|
|
slot_flags = SLOT_BELT
|
|
|
|
|
sharpness = IS_SHARP
|
|
|
|
|
force = 20
|
|
|
|
|
throwforce = 10
|
|
|
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
|
|
|
attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut")
|
|
|
|
|
var/faction = list("unassigned")
|
|
|
|
|
var/cooldown = 0
|
|
|
|
|
var/assigned = "unassigned"
|
|
|
|
|
var/static/list/multiverse = list()
|
|
|
|
|
|
|
|
|
|
/obj/item/multisword/New()
|
|
|
|
|
..()
|
|
|
|
|
multiverse += src
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/obj/item/multisword/Destroy()
|
|
|
|
|
multiverse.Remove(src)
|
|
|
|
|
return ..()
|
|
|
|
|
|
|
|
|
|
/obj/item/multisword/attack_self(mob/user)
|
|
|
|
|
if(user.mind.special_role == "apprentice")
|
|
|
|
|
to_chat(user, "<span class='warning'>You know better than to touch your teacher's stuff.</span>")
|
|
|
|
|
return
|
|
|
|
|
if(cooldown < world.time)
|
|
|
|
|
var/faction_check = 0
|
|
|
|
|
for(var/F in faction)
|
|
|
|
|
if(F in user.faction)
|
|
|
|
|
faction_check = 1
|
|
|
|
|
break
|
|
|
|
|
if(faction_check == 0)
|
|
|
|
|
faction = list("[user.real_name]")
|
|
|
|
|
assigned = "[user.real_name]"
|
|
|
|
|
user.faction = list("[user.real_name]")
|
|
|
|
|
to_chat(user, "You bind the sword to yourself. You can now use it to summon help.")
|
|
|
|
|
if(!is_gangster(user))
|
|
|
|
|
var/datum/gang/multiverse/G = new(src, "[user.real_name]")
|
|
|
|
|
SSticker.mode.gangs += G
|
|
|
|
|
G.bosses[user.mind] = 0
|
|
|
|
|
G.add_gang_hud(user.mind)
|
|
|
|
|
user.mind.gang_datum = G
|
|
|
|
|
to_chat(user, "<span class='warning'><B>With your new found power you could easily conquer the station!</B></span>")
|
|
|
|
|
var/datum/objective/hijackclone/hijack_objective = new /datum/objective/hijackclone
|
|
|
|
|
hijack_objective.owner = user.mind
|
|
|
|
|
user.mind.objectives += hijack_objective
|
|
|
|
|
hijack_objective.explanation_text = "Ensure only [user.real_name] and their copies are on the shuttle!"
|
|
|
|
|
to_chat(user, "<B>Objective #[1]</B>: [hijack_objective.explanation_text]")
|
|
|
|
|
SSticker.mode.traitors += user.mind
|
|
|
|
|
user.mind.special_role = "[user.real_name] Prime"
|
|
|
|
|
else
|
|
|
|
|
var/list/candidates = get_candidates(ROLE_WIZARD)
|
|
|
|
|
if(candidates.len)
|
|
|
|
|
var/client/C = pick(candidates)
|
|
|
|
|
spawn_copy(C, get_turf(user.loc), user)
|
|
|
|
|
to_chat(user, "<span class='warning'><B>The sword flashes, and you find yourself face to face with...you!</B></span>")
|
|
|
|
|
cooldown = world.time + 400
|
|
|
|
|
for(var/obj/item/multisword/M in multiverse)
|
|
|
|
|
if(M.assigned == assigned)
|
|
|
|
|
M.cooldown = cooldown
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
to_chat(user, "You fail to summon any copies of yourself. Perhaps you should try again in a bit.")
|
|
|
|
|
else
|
|
|
|
|
to_chat(user, "<span class='warning'><B>[src] is recharging! Keep in mind it shares a cooldown with the swords wielded by your copies.</span>")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/obj/item/multisword/proc/spawn_copy(var/client/C, var/turf/T, mob/user)
|
|
|
|
|
var/mob/living/carbon/human/M = new/mob/living/carbon/human(T)
|
|
|
|
|
C.prefs.copy_to(M, icon_updates=0)
|
|
|
|
|
M.key = C.key
|
|
|
|
|
M.mind.name = user.real_name
|
|
|
|
|
to_chat(M, "<B>You are an alternate version of [user.real_name] from another universe! Help them accomplish their goals at all costs.</B>")
|
|
|
|
|
SSticker.mode.add_gangster(M.mind, user.mind.gang_datum, FALSE)
|
|
|
|
|
M.real_name = user.real_name
|
|
|
|
|
M.name = user.real_name
|
|
|
|
|
M.faction = list("[user.real_name]")
|
|
|
|
|
if(prob(50))
|
|
|
|
|
var/list/all_species = list()
|
|
|
|
|
for(var/speciestype in subtypesof(/datum/species))
|
|
|
|
|
var/datum/species/S = speciestype
|
|
|
|
|
if(!initial(S.dangerous_existence))
|
|
|
|
|
all_species += speciestype
|
|
|
|
|
M.set_species(pick(all_species), icon_update=0)
|
|
|
|
|
M.update_body()
|
|
|
|
|
M.update_hair()
|
|
|
|
|
M.update_body_parts()
|
|
|
|
|
M.dna.update_dna_identity()
|
|
|
|
|
equip_copy(M)
|
|
|
|
|
|
|
|
|
|
/obj/item/multisword/proc/equip_copy(var/mob/living/carbon/human/M)
|
|
|
|
|
|
|
|
|
|
var/obj/item/multisword/sword = new /obj/item/multisword
|
|
|
|
|
sword.assigned = assigned
|
|
|
|
|
sword.faction = list("[assigned]")
|
|
|
|
|
|
|
|
|
|
var/randomize = pick("mobster","roman","wizard","cyborg","syndicate","assistant", "animu", "cultist", "highlander", "clown", "killer", "pirate", "soviet", "officer", "gladiator")
|
|
|
|
|
|
|
|
|
|
switch(randomize)
|
|
|
|
|
if("mobster")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/head/fedora(M), slot_head)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/laceup(M), slot_shoes)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/gloves/color/black(M), slot_gloves)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/glasses/sunglasses(M), slot_glasses)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/suit_jacket/really_black(M), slot_w_uniform)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("roman")
|
|
|
|
|
var/hat = pick(/obj/item/clothing/head/helmet/roman, /obj/item/clothing/head/helmet/roman/legionaire)
|
|
|
|
|
M.equip_to_slot_or_del(new hat(M), slot_head)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/roman(M), slot_w_uniform)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/roman(M), slot_shoes)
|
|
|
|
|
M.put_in_hands_or_del(new /obj/item/shield/riot/roman(M))
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("wizard")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/color/lightpurple(M), slot_w_uniform)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/suit/wizrobe/red(M), slot_wear_suit)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/sandal/magic(M), slot_shoes)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/head/wizard/red(M), slot_head)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
if("cyborg")
|
|
|
|
|
for(var/X in M.bodyparts)
|
|
|
|
|
var/obj/item/bodypart/affecting = X
|
|
|
|
|
affecting.change_bodypart_status(BODYPART_ROBOTIC, FALSE, TRUE)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/glasses/thermal/eyepatch(M), slot_glasses)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("syndicate")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/syndicate(M), slot_w_uniform)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/combat(M), slot_shoes)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/gloves/combat(M), slot_gloves)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/head/helmet/swat(M), slot_head)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/suit/armor/vest(M), slot_wear_suit)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/mask/gas(M),slot_wear_mask)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("assistant")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/color/grey(M), slot_w_uniform)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/sneakers/black(M), slot_shoes)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("animu")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/sandal(M), slot_shoes)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/head/kitty(M), slot_head)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/schoolgirl/red(M), slot_w_uniform)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("cultist")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/head/culthood/alt(M), slot_head)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/suit/cultrobes/alt(M), slot_wear_suit)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/cult(M), slot_shoes)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("highlander")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/kilt(M), slot_w_uniform)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/head/beret(M), slot_head)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/combat(M), slot_shoes)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("clown")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/rank/clown(M), slot_w_uniform)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/clown_shoes(M), slot_shoes)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/mask/gas/clown_hat(M), slot_wear_mask)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/bikehorn(M), slot_l_store)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("killer")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/overalls(M), slot_w_uniform)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/sneakers/white(M), slot_shoes)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/gloves/color/latex(M), slot_gloves)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/mask/surgical(M), slot_wear_mask)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/head/welding(M), slot_head)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/suit/apron(M), slot_wear_suit)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/kitchen/knife(M), slot_l_store)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/scalpel(M), slot_r_store)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
for(var/obj/item/carried_item in M.get_equipped_items())
|
|
|
|
|
carried_item.add_mob_blood(M)
|
|
|
|
|
for(var/obj/item/I in M.held_items)
|
|
|
|
|
I.add_mob_blood(M)
|
|
|
|
|
if("pirate")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/pirate(M), slot_w_uniform)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/sneakers/brown(M), slot_shoes)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/head/bandana(M), slot_head)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/glasses/eyepatch(M), slot_glasses)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("soviet")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/head/pirate/captain(M), slot_head)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/combat(M), slot_shoes)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/gloves/combat(M), slot_gloves)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/suit/pirate/captain(M), slot_wear_suit)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/soviet(M), slot_w_uniform)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("officer")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/head/helmet/space/beret(M), slot_head)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/combat(M), slot_shoes)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/gloves/combat(M), slot_gloves)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/mask/cigarette/cigar/havana(M), slot_wear_mask)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/suit/jacket/miljacket(M), slot_wear_suit)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/syndicate(M), slot_w_uniform)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/glasses/eyepatch(M), slot_glasses)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
if("gladiator")
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/head/helmet/gladiator(M), slot_head)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/under/gladiator(M), slot_w_uniform)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_ears)
|
|
|
|
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/sandal(M), slot_shoes)
|
|
|
|
|
M.put_in_hands_or_del(sword)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
M.update_body_parts()
|
|
|
|
|
|
|
|
|
|
var/obj/item/card/id/W = new /obj/item/card/id
|
|
|
|
|
W.icon_state = "centcom"
|
|
|
|
|
W.access += ACCESS_MAINT_TUNNELS
|
|
|
|
|
W.assignment = "Multiverse Traveller"
|
|
|
|
|
W.registered_name = M.real_name
|
|
|
|
|
W.update_label(M.real_name)
|
|
|
|
|
M.equip_to_slot_or_del(W, slot_wear_id)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/obj/item/voodoo
|
|
|
|
|
name = "wicker doll"
|
|
|
|
|
desc = "Something creepy about it."
|
|
|
|
|