mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 15:37:36 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user