New stuff for mining

Conflicts:
	code/game/mining_surprise.dm
	code/game/objects/structures/wizmobile.dm
	code/modules/mining/mine_turfs.dm
	code/modules/mining/minerals.dm
	compare_report_tg.txt
	icons/obj/mining.dmi
	icons/turf/walls.dmi
This commit is contained in:
Rob Nelson
2014-02-16 03:54:39 -05:00
committed by ZomgPonies
parent 4017704032
commit 6ad3ca77f1
9 changed files with 726 additions and 6 deletions
+41 -4
View File
@@ -3,6 +3,7 @@
* Twohanded
* Fireaxe
* Double-Bladed Energy Swords
* Spears
*/
/*##################################################################
@@ -94,12 +95,48 @@
w_class = 5.0
icon_state = "offhand"
name = "offhand"
//flags = ABSTRACT
unwield()
del(src)
/obj/item/weapon/twohanded/offhand/unwield()
del(src)
wield()
del(src)
/obj/item/weapon/twohanded/offhand/wield()
del(src)
/obj/item/weapon/twohanded/offhand/IsShield()//if the actual twohanded weapon is a shield, we count as a shield too!
var/mob/user = loc
if(!istype(user)) return 0
var/obj/item/I = user.get_active_hand()
if(I == src) I = user.get_inactive_hand()
if(!I) return 0
return I.IsShield()
///////////Two hand required objects///////////////
//This is for objects that require two hands to even pick up
/obj/item/weapon/twohanded/required/
w_class = 5.0
/obj/item/weapon/twohanded/required/attack_self()
return
/obj/item/weapon/twohanded/required/mob_can_equip(M as mob, slot)
if(wielded)
M << "<span class='warning'>[src.name] is too cumbersome to carry with anything but your hands!</span>"
return 0
return ..()
/obj/item/weapon/twohanded/required/attack_hand(mob/user)//Can't even pick it up without both hands empty
var/obj/item/weapon/twohanded/required/H = user.get_inactive_hand()
if(H != null)
user.visible_message("<span class='notice'>[src.name] is too cumbersome to carry in one hand!</span>")
return
var/obj/item/weapon/twohanded/offhand/O = new(user)
user.put_in_inactive_hand(O)
..()
wielded = 1
obj/item/weapon/twohanded/
/*
* Fireaxe