mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 04:02:31 +00:00
Renamed twohanded weapons, collapsed bats.
This commit is contained in:
@@ -805,18 +805,18 @@ About the new airlock wires panel:
|
|||||||
else
|
else
|
||||||
spawn(0) close(1)
|
spawn(0) close(1)
|
||||||
|
|
||||||
else if(istype(C, /obj/item/weapon/twohanded/fireaxe) && !arePowerSystemsOn())
|
else if(istype(C, /obj/item/weapon/material/twohanded/fireaxe) && !arePowerSystemsOn())
|
||||||
if(locked)
|
if(locked)
|
||||||
user << "\blue The airlock's bolts prevent it from being forced."
|
user << "\blue The airlock's bolts prevent it from being forced."
|
||||||
else if( !welded && !operating )
|
else if( !welded && !operating )
|
||||||
if(density)
|
if(density)
|
||||||
var/obj/item/weapon/twohanded/fireaxe/F = C
|
var/obj/item/weapon/material/twohanded/fireaxe/F = C
|
||||||
if(F.wielded)
|
if(F.wielded)
|
||||||
spawn(0) open(1)
|
spawn(0) open(1)
|
||||||
else
|
else
|
||||||
user << "\red You need to be wielding \the [C] to do that."
|
user << "\red You need to be wielding \the [C] to do that."
|
||||||
else
|
else
|
||||||
var/obj/item/weapon/twohanded/fireaxe/F = C
|
var/obj/item/weapon/material/twohanded/fireaxe/F = C
|
||||||
if(F.wielded)
|
if(F.wielded)
|
||||||
spawn(0) close(1)
|
spawn(0) close(1)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
// This only works on broken doors or doors without power. Also allows repair with Plasteel.
|
// This only works on broken doors or doors without power. Also allows repair with Plasteel.
|
||||||
/obj/machinery/door/blast/attackby(obj/item/weapon/C as obj, mob/user as mob)
|
/obj/machinery/door/blast/attackby(obj/item/weapon/C as obj, mob/user as mob)
|
||||||
src.add_fingerprint(user)
|
src.add_fingerprint(user)
|
||||||
if(istype(C, /obj/item/weapon/crowbar) || (istype(C, /obj/item/weapon/twohanded/fireaxe) && C:wielded == 1))
|
if(istype(C, /obj/item/weapon/crowbar) || (istype(C, /obj/item/weapon/material/twohanded/fireaxe) && C:wielded == 1))
|
||||||
if(((stat & NOPOWER) || (stat & BROKEN)) && !( src.operating ))
|
if(((stat & NOPOWER) || (stat & BROKEN)) && !( src.operating ))
|
||||||
force_toggle()
|
force_toggle()
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -238,7 +238,7 @@
|
|||||||
user << "<span class='danger'>\The [src] is welded shut!</span>"
|
user << "<span class='danger'>\The [src] is welded shut!</span>"
|
||||||
return
|
return
|
||||||
|
|
||||||
if(istype(C, /obj/item/weapon/crowbar) || istype(C,/obj/item/weapon/twohanded/fireaxe))
|
if(istype(C, /obj/item/weapon/crowbar) || istype(C,/obj/item/weapon/material/twohanded/fireaxe))
|
||||||
if(operating)
|
if(operating)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -248,8 +248,8 @@
|
|||||||
"You hear someone struggle and metal straining.")
|
"You hear someone struggle and metal straining.")
|
||||||
return
|
return
|
||||||
|
|
||||||
if(istype(C,/obj/item/weapon/twohanded/fireaxe))
|
if(istype(C,/obj/item/weapon/material/twohanded/fireaxe))
|
||||||
var/obj/item/weapon/twohanded/fireaxe/F = C
|
var/obj/item/weapon/material/twohanded/fireaxe/F = C
|
||||||
if(!F.wielded)
|
if(!F.wielded)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
/obj/item/stack/sheet/animalhide/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
/obj/item/stack/sheet/animalhide/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||||
if( istype(W, /obj/item/weapon/material/knife) || \
|
if( istype(W, /obj/item/weapon/material/knife) || \
|
||||||
istype(W, /obj/item/weapon/kitchen/utensil/knife) || \
|
istype(W, /obj/item/weapon/kitchen/utensil/knife) || \
|
||||||
istype(W, /obj/item/weapon/twohanded/fireaxe) || \
|
istype(W, /obj/item/weapon/material/twohanded/fireaxe) || \
|
||||||
istype(W, /obj/item/weapon/hatchet) )
|
istype(W, /obj/item/weapon/hatchet) )
|
||||||
|
|
||||||
//visible message on mobs is defined as visible_message(var/message, var/self_message, var/blind_message)
|
//visible message on mobs is defined as visible_message(var/message, var/self_message, var/blind_message)
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ var/global/list/datum/stack_recipe/metal_recipes = list ( \
|
|||||||
null, \
|
null, \
|
||||||
new/datum/stack_recipe("table frame", /obj/structure/table, 1, time = 10, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("table frame", /obj/structure/table, 1, time = 10, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("rack", /obj/structure/table/rack, 1, time = 5, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("rack", /obj/structure/table/rack, 1, time = 5, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("metal baseball bat", /obj/item/weapon/twohanded/baseballbat/metal, 10, time = 20, one_per_turf = 0, on_floor = 1), \
|
new/datum/stack_recipe("metal baseball bat", /obj/item/weapon/material/twohanded/baseballbat/metal, 10, time = 20, one_per_turf = 0, on_floor = 1), \
|
||||||
new/datum/stack_recipe("closet", /obj/structure/closet, 2, time = 15, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("closet", /obj/structure/closet, 2, time = 15, one_per_turf = 1, on_floor = 1), \
|
||||||
null, \
|
null, \
|
||||||
new/datum/stack_recipe("canister", /obj/machinery/portable_atmospherics/canister, 10, time = 15, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("canister", /obj/machinery/portable_atmospherics/canister, 10, time = 15, one_per_turf = 1, on_floor = 1), \
|
||||||
@@ -152,7 +152,7 @@ var/global/list/datum/stack_recipe/wood_recipes = list ( \
|
|||||||
new/datum/stack_recipe("crossbow frame", /obj/item/weapon/crossbowframe, 5, time = 25, one_per_turf = 0, on_floor = 0), \
|
new/datum/stack_recipe("crossbow frame", /obj/item/weapon/crossbowframe, 5, time = 25, one_per_turf = 0, on_floor = 0), \
|
||||||
new/datum/stack_recipe("wooden door", /obj/structure/mineral_door/wood, 10, time = 20, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("wooden door", /obj/structure/mineral_door/wood, 10, time = 20, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("coffin", /obj/structure/closet/coffin, 5, time = 15, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("coffin", /obj/structure/closet/coffin, 5, time = 15, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("baseball bat", /obj/item/weapon/twohanded/baseballbat, 10, time = 20, one_per_turf = 0, on_floor = 1) \
|
new/datum/stack_recipe("baseball bat", /obj/item/weapon/material/twohanded/baseballbat, 10, time = 20, one_per_turf = 0, on_floor = 1) \
|
||||||
// new/datum/stack_recipe("apiary", /obj/item/apiary, 10, time = 25, one_per_turf = 0, on_floor = 0)
|
// new/datum/stack_recipe("apiary", /obj/item/apiary, 10, time = 25, one_per_turf = 0, on_floor = 0)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
/obj/item/weapon/wirerod/attackby(var/obj/item/I, mob/user as mob)
|
/obj/item/weapon/wirerod/attackby(var/obj/item/I, mob/user as mob)
|
||||||
..()
|
..()
|
||||||
if(istype(I, /obj/item/weapon/material/shard))
|
if(istype(I, /obj/item/weapon/material/shard))
|
||||||
var/obj/item/weapon/twohanded/spear/S = new /obj/item/weapon/twohanded/spear
|
var/obj/item/weapon/material/twohanded/spear/S = new /obj/item/weapon/material/twohanded/spear
|
||||||
|
|
||||||
user.put_in_hands(S)
|
user.put_in_hands(S)
|
||||||
user << "<span class='notice'>You fasten the glass shard to the top of the rod with the cable.</span>"
|
user << "<span class='notice'>You fasten the glass shard to the top of the rod with the cable.</span>"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/obj/item/weapon/twohanded/baseballbat
|
/obj/item/weapon/material/twohanded/baseballbat
|
||||||
name = "wooden bat"
|
name = "bat"
|
||||||
desc = "HOME RUN!"
|
desc = "HOME RUN!"
|
||||||
icon_state = "metalbat0"
|
icon_state = "metalbat0"
|
||||||
base_icon = "metalbat"
|
base_icon = "metalbat"
|
||||||
@@ -15,66 +15,20 @@
|
|||||||
hitsound = 'sound/weapons/genhit3.ogg'
|
hitsound = 'sound/weapons/genhit3.ogg'
|
||||||
force_wielded = 20
|
force_wielded = 20
|
||||||
health = 10
|
health = 10
|
||||||
var/material/material
|
default_material = "wood"
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/baseballbat/New(var/newloc, var/material_key)
|
|
||||||
..(newloc)
|
|
||||||
if(!material_key)
|
|
||||||
material_key = "wood"
|
|
||||||
material = get_material_by_name(material_key)
|
|
||||||
if(!material)
|
|
||||||
qdel(src)
|
|
||||||
else
|
|
||||||
name = "[material.display_name] bat"
|
|
||||||
base_name = name
|
|
||||||
health = round(material.integrity/10)
|
|
||||||
force = round(material.get_blunt_damage()/2)
|
|
||||||
force_unwielded = force
|
|
||||||
force_wielded = material.get_blunt_damage()
|
|
||||||
color = material.icon_colour
|
|
||||||
if(material.products_need_process())
|
|
||||||
processing_objects |= src
|
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/baseballbat/Destroy()
|
|
||||||
processing_objects -= src
|
|
||||||
..()
|
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/baseballbat/attack()
|
|
||||||
if(!..())
|
|
||||||
return
|
|
||||||
if(!prob(material.hardness))
|
|
||||||
health--
|
|
||||||
if(health<=0)
|
|
||||||
shatter()
|
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/baseballbat/proc/shatter()
|
|
||||||
var/turf/T = get_turf(src)
|
|
||||||
T.visible_message("<span class='danger'>\The [src] shatters!</span>")
|
|
||||||
if(istype(loc, /mob/living))
|
|
||||||
var/mob/living/M = loc
|
|
||||||
M.drop_from_inventory(src)
|
|
||||||
playsound(src, "shatter", 70, 1)
|
|
||||||
new material.shard_type(T)
|
|
||||||
qdel(src)
|
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/baseballbat/process()
|
|
||||||
if(!material.radioactivity)
|
|
||||||
return
|
|
||||||
for(var/mob/living/L in range(1,src))
|
|
||||||
L.apply_effect(round(material.radioactivity/3),IRRADIATE,0)
|
|
||||||
|
|
||||||
//Predefined materials go here.
|
//Predefined materials go here.
|
||||||
/obj/item/weapon/twohanded/baseballbat/metal/New(var/newloc)
|
/obj/item/weapon/material/twohanded/baseballbat/metal/New(var/newloc)
|
||||||
..(newloc,"steel")
|
..(newloc,"steel")
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/baseballbat/uranium/New(var/newloc)
|
/obj/item/weapon/material/twohanded/baseballbat/uranium/New(var/newloc)
|
||||||
..(newloc,"uranium")
|
..(newloc,"uranium")
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/baseballbat/gold/New(var/newloc)
|
/obj/item/weapon/material/twohanded/baseballbat/gold/New(var/newloc)
|
||||||
..(newloc,"gold")
|
..(newloc,"gold")
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/baseballbat/platinum/New(var/newloc)
|
/obj/item/weapon/material/twohanded/baseballbat/platinum/New(var/newloc)
|
||||||
..(newloc,"platinum")
|
..(newloc,"platinum")
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/baseballbat/diamond/New(var/newloc)
|
/obj/item/weapon/material/twohanded/baseballbat/diamond/New(var/newloc)
|
||||||
..(newloc,"diamond")
|
..(newloc,"diamond")
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
throw_range = 4
|
throw_range = 4
|
||||||
throwforce = 7
|
throwforce = 7
|
||||||
attack_verb = list("patted", "tapped")
|
attack_verb = list("patted", "tapped")
|
||||||
|
applies_material_colour = 1
|
||||||
|
|
||||||
/obj/item/weapon/material/butterfly/update_force()
|
/obj/item/weapon/material/butterfly/update_force()
|
||||||
if(active)
|
if(active)
|
||||||
@@ -69,6 +70,7 @@
|
|||||||
origin_tech = "materials=1"
|
origin_tech = "materials=1"
|
||||||
attack_verb = list("slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut")
|
attack_verb = list("slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut")
|
||||||
unbreakable = 1
|
unbreakable = 1
|
||||||
|
applies_material_colour = 1
|
||||||
|
|
||||||
/obj/item/weapon/material/knife/suicide_act(mob/user)
|
/obj/item/weapon/material/knife/suicide_act(mob/user)
|
||||||
viewers(user) << pick("\red <b>[user] is slitting \his wrists with the [src.name]! It looks like \he's trying to commit suicide.</b>", \
|
viewers(user) << pick("\red <b>[user] is slitting \his wrists with the [src.name]! It looks like \he's trying to commit suicide.</b>", \
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
hitsound = 'sound/weapons/bladeslice.ogg'
|
hitsound = 'sound/weapons/bladeslice.ogg'
|
||||||
gender = NEUTER
|
gender = NEUTER
|
||||||
|
|
||||||
|
var/applies_material_colour
|
||||||
var/unbreakable
|
var/unbreakable
|
||||||
var/damage_divisor = 0.5
|
var/damage_divisor = 0.5
|
||||||
var/default_material = DEFAULT_WALL_MATERIAL
|
var/default_material = DEFAULT_WALL_MATERIAL
|
||||||
@@ -24,7 +25,8 @@
|
|||||||
else
|
else
|
||||||
name = "[material.display_name] bat"
|
name = "[material.display_name] bat"
|
||||||
health = round(material.integrity/10)
|
health = round(material.integrity/10)
|
||||||
color = material.icon_colour
|
if(applies_material_colour)
|
||||||
|
color = material.icon_colour
|
||||||
if(material.products_need_process())
|
if(material.products_need_process())
|
||||||
processing_objects |= src
|
processing_objects |= src
|
||||||
update_force()
|
update_force()
|
||||||
|
|||||||
@@ -9,4 +9,3 @@
|
|||||||
throwforce = 15
|
throwforce = 15
|
||||||
w_class = 3
|
w_class = 3
|
||||||
attack_verb = list("jabbed","stabbed","ripped")
|
attack_verb = list("jabbed","stabbed","ripped")
|
||||||
default_material = "steel"
|
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
/*
|
/*
|
||||||
* Twohanded
|
* Twohanded
|
||||||
*/
|
*/
|
||||||
/obj/item/weapon/twohanded
|
/obj/item/weapon/material/twohanded
|
||||||
var/wielded = 0
|
var/wielded = 0
|
||||||
var/force_wielded = 0
|
var/force_wielded = 0
|
||||||
var/force_unwielded
|
var/force_unwielded
|
||||||
@@ -25,25 +25,28 @@
|
|||||||
var/base_icon
|
var/base_icon
|
||||||
var/base_name
|
var/base_name
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/proc/unwield()
|
/obj/item/weapon/material/twohanded/proc/unwield()
|
||||||
wielded = 0
|
wielded = 0
|
||||||
force = force_unwielded
|
force = force_unwielded
|
||||||
name = "[base_name]"
|
name = "[base_name]"
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/proc/wield()
|
/obj/item/weapon/material/twohanded/proc/wield()
|
||||||
wielded = 1
|
wielded = 1
|
||||||
force = force_wielded
|
force = force_wielded
|
||||||
name = "[base_name] (Wielded)"
|
name = "[base_name] (Wielded)"
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/New()
|
/obj/item/weapon/material/twohanded/update_force()
|
||||||
|
base_name = name
|
||||||
|
force_unwielded = force
|
||||||
|
force_wielded = material.get_blunt_damage()
|
||||||
|
|
||||||
|
/obj/item/weapon/material/twohanded/New()
|
||||||
..()
|
..()
|
||||||
update_icon()
|
update_icon()
|
||||||
force_unwielded = force
|
|
||||||
base_name = name
|
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/mob_can_equip(M as mob, slot)
|
/obj/item/weapon/material/twohanded/mob_can_equip(M as mob, slot)
|
||||||
//Cannot equip wielded items.
|
//Cannot equip wielded items.
|
||||||
if(wielded)
|
if(wielded)
|
||||||
M << "<span class='warning'>Unwield the [base_name] first!</span>"
|
M << "<span class='warning'>Unwield the [base_name] first!</span>"
|
||||||
@@ -51,22 +54,22 @@
|
|||||||
|
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/dropped(mob/user as mob)
|
/obj/item/weapon/material/twohanded/dropped(mob/user as mob)
|
||||||
//handles unwielding a twohanded weapon when dropped as well as clearing up the offhand
|
//handles unwielding a twohanded weapon when dropped as well as clearing up the offhand
|
||||||
if(user)
|
if(user)
|
||||||
var/obj/item/weapon/twohanded/O = user.get_inactive_hand()
|
var/obj/item/weapon/material/twohanded/O = user.get_inactive_hand()
|
||||||
if(istype(O))
|
if(istype(O))
|
||||||
O.unwield()
|
O.unwield()
|
||||||
return unwield()
|
return unwield()
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/update_icon()
|
/obj/item/weapon/material/twohanded/update_icon()
|
||||||
icon_state = "[base_icon][wielded]"
|
icon_state = "[base_icon][wielded]"
|
||||||
item_state = icon_state
|
item_state = icon_state
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/pickup(mob/user)
|
/obj/item/weapon/material/twohanded/pickup(mob/user)
|
||||||
unwield()
|
unwield()
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/attack_self(mob/user as mob)
|
/obj/item/weapon/material/twohanded/attack_self(mob/user as mob)
|
||||||
|
|
||||||
..()
|
..()
|
||||||
|
|
||||||
@@ -84,7 +87,7 @@
|
|||||||
if (src.unwieldsound)
|
if (src.unwieldsound)
|
||||||
playsound(src.loc, unwieldsound, 50, 1)
|
playsound(src.loc, unwieldsound, 50, 1)
|
||||||
|
|
||||||
var/obj/item/weapon/twohanded/offhand/O = user.get_inactive_hand()
|
var/obj/item/weapon/material/twohanded/offhand/O = user.get_inactive_hand()
|
||||||
if(O && istype(O))
|
if(O && istype(O))
|
||||||
O.unwield()
|
O.unwield()
|
||||||
|
|
||||||
@@ -97,7 +100,7 @@
|
|||||||
if (src.wieldsound)
|
if (src.wieldsound)
|
||||||
playsound(src.loc, wieldsound, 50, 1)
|
playsound(src.loc, wieldsound, 50, 1)
|
||||||
|
|
||||||
var/obj/item/weapon/twohanded/offhand/O = new(user) ////Let's reserve his other hand~
|
var/obj/item/weapon/material/twohanded/offhand/O = new(user) ////Let's reserve his other hand~
|
||||||
O.name = "[base_name] - offhand"
|
O.name = "[base_name] - offhand"
|
||||||
O.desc = "Your second grip on the [base_name]"
|
O.desc = "Your second grip on the [base_name]"
|
||||||
user.put_in_inactive_hand(O)
|
user.put_in_inactive_hand(O)
|
||||||
@@ -110,24 +113,25 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
///////////OFFHAND///////////////
|
///////////OFFHAND///////////////
|
||||||
/obj/item/weapon/twohanded/offhand
|
/obj/item/weapon/material/twohanded/offhand
|
||||||
w_class = 5.0
|
w_class = 5.0
|
||||||
icon_state = "offhand"
|
icon_state = "offhand"
|
||||||
name = "offhand"
|
name = "offhand"
|
||||||
|
default_material = "placeholder"
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/offhand/unwield()
|
/obj/item/weapon/material/twohanded/offhand/unwield()
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/offhand/wield()
|
/obj/item/weapon/material/twohanded/offhand/wield()
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/offhand/update_icon()
|
/obj/item/weapon/material/twohanded/offhand/update_icon()
|
||||||
return
|
return
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fireaxe
|
* Fireaxe
|
||||||
*/
|
*/
|
||||||
/obj/item/weapon/twohanded/fireaxe // DEM AXES MAN, marker -Agouri
|
/obj/item/weapon/material/twohanded/fireaxe // DEM AXES MAN, marker -Agouri
|
||||||
icon_state = "fireaxe0"
|
icon_state = "fireaxe0"
|
||||||
base_icon = "fireaxe"
|
base_icon = "fireaxe"
|
||||||
name = "fire axe"
|
name = "fire axe"
|
||||||
@@ -140,7 +144,7 @@
|
|||||||
force_wielded = 30
|
force_wielded = 30
|
||||||
attack_verb = list("attacked", "chopped", "cleaved", "torn", "cut")
|
attack_verb = list("attacked", "chopped", "cleaved", "torn", "cut")
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/fireaxe/afterattack(atom/A as mob|obj|turf|area, mob/user as mob, proximity)
|
/obj/item/weapon/material/twohanded/fireaxe/afterattack(atom/A as mob|obj|turf|area, mob/user as mob, proximity)
|
||||||
if(!proximity) return
|
if(!proximity) return
|
||||||
..()
|
..()
|
||||||
if(A && wielded && (istype(A,/obj/structure/window) || istype(A,/obj/structure/grille))) //destroys windows and grilles in one hit
|
if(A && wielded && (istype(A,/obj/structure/window) || istype(A,/obj/structure/grille))) //destroys windows and grilles in one hit
|
||||||
@@ -151,7 +155,7 @@
|
|||||||
/*
|
/*
|
||||||
* Double-Bladed Energy Swords - Cheridan
|
* Double-Bladed Energy Swords - Cheridan
|
||||||
*/
|
*/
|
||||||
/obj/item/weapon/twohanded/dualsaber
|
/obj/item/weapon/material/twohanded/dualsaber
|
||||||
icon_state = "dualsaber0"
|
icon_state = "dualsaber0"
|
||||||
base_icon = "dualsaber"
|
base_icon = "dualsaber"
|
||||||
name = "double-bladed energy sword"
|
name = "double-bladed energy sword"
|
||||||
@@ -170,7 +174,7 @@
|
|||||||
sharp = 1
|
sharp = 1
|
||||||
edge = 1
|
edge = 1
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/dualsaber/attack(target as mob, mob/living/user as mob)
|
/obj/item/weapon/material/twohanded/dualsaber/attack(target as mob, mob/living/user as mob)
|
||||||
..()
|
..()
|
||||||
if((CLUMSY in user.mutations) && (wielded) &&prob(40))
|
if((CLUMSY in user.mutations) && (wielded) &&prob(40))
|
||||||
user << "\red You twirl around a bit before losing your balance and impaling yourself on the [src]."
|
user << "\red You twirl around a bit before losing your balance and impaling yourself on the [src]."
|
||||||
@@ -182,14 +186,14 @@
|
|||||||
user.set_dir(i)
|
user.set_dir(i)
|
||||||
sleep(1)
|
sleep(1)
|
||||||
|
|
||||||
/obj/item/weapon/twohanded/dualsaber/IsShield()
|
/obj/item/weapon/material/twohanded/dualsaber/IsShield()
|
||||||
if(wielded)
|
if(wielded)
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
//spears, bay edition
|
//spears, bay edition
|
||||||
/obj/item/weapon/twohanded/spear
|
/obj/item/weapon/material/twohanded/spear
|
||||||
icon_state = "spearglass0"
|
icon_state = "spearglass0"
|
||||||
base_icon = "spearglass"
|
base_icon = "spearglass"
|
||||||
name = "spear"
|
name = "spear"
|
||||||
@@ -205,3 +209,4 @@
|
|||||||
flags = NOSHIELD
|
flags = NOSHIELD
|
||||||
hitsound = 'sound/weapons/bladeslice.ogg'
|
hitsound = 'sound/weapons/bladeslice.ogg'
|
||||||
attack_verb = list("attacked", "poked", "jabbed", "torn", "gored")
|
attack_verb = list("attacked", "poked", "jabbed", "torn", "gored")
|
||||||
|
default_material = "glass"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/obj/structure/closet/fireaxecabinet
|
/obj/structure/closet/fireaxecabinet
|
||||||
name = "fire axe cabinet"
|
name = "fire axe cabinet"
|
||||||
desc = "There is small label that reads \"For Emergency use only\" along with details for safe use of the axe. As if."
|
desc = "There is small label that reads \"For Emergency use only\" along with details for safe use of the axe. As if."
|
||||||
var/obj/item/weapon/twohanded/fireaxe/fireaxe
|
var/obj/item/weapon/material/twohanded/fireaxe/fireaxe
|
||||||
icon_state = "fireaxe1000"
|
icon_state = "fireaxe1000"
|
||||||
icon_closed = "fireaxe1000"
|
icon_closed = "fireaxe1000"
|
||||||
icon_opened = "fireaxe1100"
|
icon_opened = "fireaxe1100"
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
New()
|
New()
|
||||||
..()
|
..()
|
||||||
fireaxe = new /obj/item/weapon/twohanded/fireaxe(src)
|
fireaxe = new /obj/item/weapon/material/twohanded/fireaxe(src)
|
||||||
|
|
||||||
attackby(var/obj/item/O as obj, var/mob/user as mob) //Marker -Agouri
|
attackby(var/obj/item/O as obj, var/mob/user as mob) //Marker -Agouri
|
||||||
//..() //That's very useful, Erro
|
//..() //That's very useful, Erro
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
src.localopened = 1
|
src.localopened = 1
|
||||||
update_icon()
|
update_icon()
|
||||||
return
|
return
|
||||||
if (istype(O, /obj/item/weapon/twohanded/fireaxe) && src.localopened)
|
if (istype(O, /obj/item/weapon/material/twohanded/fireaxe) && src.localopened)
|
||||||
if(!fireaxe)
|
if(!fireaxe)
|
||||||
if(O:wielded)
|
if(O:wielded)
|
||||||
user << "\red Unwield the axe first."
|
user << "\red Unwield the axe first."
|
||||||
|
|||||||
@@ -687,7 +687,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
|||||||
W.registered_name = M.real_name
|
W.registered_name = M.real_name
|
||||||
M.equip_to_slot_or_del(W, slot_wear_id)
|
M.equip_to_slot_or_del(W, slot_wear_id)
|
||||||
|
|
||||||
var/obj/item/weapon/twohanded/fireaxe/fire_axe = new(M)
|
var/obj/item/weapon/material/twohanded/fireaxe/fire_axe = new(M)
|
||||||
M.equip_to_slot_or_del(fire_axe, slot_r_hand)
|
M.equip_to_slot_or_del(fire_axe, slot_r_hand)
|
||||||
|
|
||||||
if("masked killer")
|
if("masked killer")
|
||||||
@@ -702,7 +702,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
|||||||
M.equip_to_slot_or_del(new /obj/item/weapon/material/knife(M), slot_l_store)
|
M.equip_to_slot_or_del(new /obj/item/weapon/material/knife(M), slot_l_store)
|
||||||
M.equip_to_slot_or_del(new /obj/item/weapon/scalpel(M), slot_r_store)
|
M.equip_to_slot_or_del(new /obj/item/weapon/scalpel(M), slot_r_store)
|
||||||
|
|
||||||
var/obj/item/weapon/twohanded/fireaxe/fire_axe = new(M)
|
var/obj/item/weapon/material/twohanded/fireaxe/fire_axe = new(M)
|
||||||
M.equip_to_slot_or_del(fire_axe, slot_r_hand)
|
M.equip_to_slot_or_del(fire_axe, slot_r_hand)
|
||||||
|
|
||||||
for(var/obj/item/carried_item in M.contents)
|
for(var/obj/item/carried_item in M.contents)
|
||||||
|
|||||||
@@ -132,7 +132,7 @@
|
|||||||
/mob/living/carbon/proc/swap_hand()
|
/mob/living/carbon/proc/swap_hand()
|
||||||
var/obj/item/item_in_hand = src.get_active_hand()
|
var/obj/item/item_in_hand = src.get_active_hand()
|
||||||
if(item_in_hand) //this segment checks if the item in your hand is twohanded.
|
if(item_in_hand) //this segment checks if the item in your hand is twohanded.
|
||||||
if(istype(item_in_hand,/obj/item/weapon/twohanded))
|
if(istype(item_in_hand,/obj/item/weapon/material/twohanded))
|
||||||
if(item_in_hand:wielded == 1)
|
if(item_in_hand:wielded == 1)
|
||||||
usr << "<span class='warning'>Your other hand is too busy holding the [item_in_hand.name]</span>"
|
usr << "<span class='warning'>Your other hand is too busy holding the [item_in_hand.name]</span>"
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user