Merging Development

Merging the development branch.
This commit is contained in:
jack-fractal
2015-06-30 22:11:33 -04:00
110 changed files with 14370 additions and 13629 deletions
+2 -2
View File
@@ -481,7 +481,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
data["sqlcon"] = 1
error("SQL database connection failed. Attempted to fetch form information.")
var/DBQuery/query = dbcon.NewQuery("SELECT id, name FROM aurora_directives")
var/DBQuery/query = dbcon.NewQuery("SELECT id, name FROM ss13_directives")
query.Execute()
while(query.NextRow())
@@ -493,7 +493,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
data["directives"] = directives
if(mode==61)
var/DBQuery/searchquery = dbcon.NewQuery("SELECT id, name, data FROM aurora_directives WHERE id=[queryid]")
var/DBQuery/searchquery = dbcon.NewQuery("SELECT id, name, data FROM ss13_directives WHERE id=[queryid]")
searchquery.Execute()
while(searchquery.NextRow())
@@ -9,6 +9,7 @@
var/mob/attacher = null
var/valve_open = 0
var/toggle = 1
matter = list("metal" = 1250)
/obj/item/device/transfer_valve/proc/process_activation(var/obj/item/device/D)
+2 -2
View File
@@ -33,8 +33,8 @@
S.heal_damage(30, 30, robo_repair = 1)
H.updatehealth()
use(1)
user.visible_message("<span class='notice'>\The [user] applies some nanite paste at[user != M ? " \the [M]'s" : " \the"][S.display_name] with \the [src].</span>",\
"<span class='notice'>You apply some nanite paste at [user == M ? "your" : "[M]'s"] [S.display_name].</span>")
user.visible_message("<span class='notice'>\The [user] applies some nanite paste onto \the [S.display_name] with \the [src].</span>",\
"<span class='notice'>You apply some nanite paste onto \the [S.display_name].</span>")
else
user << "<span class='notice'>Nothing to fix here.</span>"
else
@@ -69,7 +69,7 @@ var/global/list/datum/stack_recipe/metal_recipes = list ( \
new/datum/stack_recipe("apc frame", /obj/item/apc_frame, 2), \
new/datum/stack_recipe("air alarm frame", /obj/item/alarm_frame, 2), \
new/datum/stack_recipe("fire alarm frame", /obj/item/firealarm_frame, 2), \
new/datum/stack_recipe("metal bat", /obj/item/weapon/metal_bat, 5), \
new/datum/stack_recipe("metal bat", /obj/item/weapon/twohanded/baseballbat/metal, 5), \
null, \
new/datum/stack_recipe("iron door", /obj/structure/mineral_door/iron, 20, one_per_turf = 1, on_floor = 1), \
)
@@ -102,7 +102,6 @@ var/global/list/datum/stack_recipe/metal_recipes = list ( \
*/
var/global/list/datum/stack_recipe/plasteel_recipes = list ( \
new/datum/stack_recipe("AI core", /obj/structure/AIcore, 4, time = 50, one_per_turf = 1), \
new/datum/stack_recipe("plasteel bat", /obj/item/weapon/pla_bat, 5), \
new/datum/stack_recipe("Metal crate", /obj/structure/closet/crate, 10, time = 50, one_per_turf = 1), \
new/datum/stack_recipe("RUST fuel assembly port frame", /obj/item/rust_fuel_assembly_port_frame, 12, time = 50, one_per_turf = 1), \
new/datum/stack_recipe("RUST fuel compressor frame", /obj/item/rust_fuel_compressor_frame, 12, time = 50, one_per_turf = 1), \
@@ -135,7 +134,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("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("wooden bat", /obj/item/weapon/wood_bat, 5), \
new/datum/stack_recipe("wooden bat", /obj/item/weapon/twohanded/baseballbat, 5), \
// new/datum/stack_recipe("apiary", /obj/item/apiary, 10, time = 25, one_per_turf = 0, on_floor = 0)
)
@@ -147,6 +147,19 @@ var/last_chew = 0
/obj/item/weapon/handcuffs/cable/white
color = "#FFFFFF"
/obj/item/weapon/handcuffs/cable/attackby(var/obj/item/I, mob/user as mob)
..()
if(istype(I, /obj/item/stack/rods))
var/obj/item/stack/rods/R = I
if(R.get_amount() > 0)
R.use(1)
var/obj/item/weapon/wirerod/W = new /obj/item/weapon/wirerod
user.put_in_hands(W)
user << "<span class='notice'>You wrap the cable restraint around the top of the rod.</span>"
del(src)
update_icon(user)
/obj/item/weapon/handcuffs/cyborg
dispenser = 1
+16 -5
View File
@@ -183,11 +183,7 @@
return
/*
*
*
*Stun Rod, WALL OF TEXT!
*
*
*Stun Rod
*/
/obj/item/weapon/melee/baton/stunrod
@@ -207,3 +203,18 @@
bcell = new/obj/item/weapon/cell/high(src)
update_icon()
return
/*
*Cattleprod
*/
/obj/item/weapon/melee/baton/cattleprod
name = "stunprod"
desc = "An improvised stun baton."
icon_state = "stunprod_nocell"
item_state = "prod"
force = 3
throwforce = 5
hitcost = 2500
attack_verb = list("poked")
slot_flags = null
@@ -217,7 +217,7 @@
del(src)
return
/obj/item/weapon/melee/energy/blade/proc/throw()
/obj/item/weapon/melee/energy/blade/proc/weaponThrow() //This isn't even used what? ~Scopes
del(src)
return
+53 -13
View File
@@ -3,6 +3,8 @@
* Twohanded
* Fireaxe
* Double-Bladed Energy Swords
* Spear
* Baseball bats (2x)
*/
/*##################################################################
@@ -18,14 +20,14 @@
*/
/obj/item/weapon/twohanded
var/wielded = 0
var/force_unwielded = 0
var/force_wielded = 0
var/wieldsound = null
var/unwieldsound = null
var/base_icon
/obj/item/weapon/twohanded/proc/unwield()
wielded = 0
force = force_unwielded
force = initial(force)
name = "[initial(name)]"
update_icon()
@@ -52,6 +54,7 @@
return unwield()
/obj/item/weapon/twohanded/update_icon()
icon_state = "[base_icon][wielded]"
return
/obj/item/weapon/twohanded/pickup(mob/user)
@@ -106,6 +109,7 @@
*/
/obj/item/weapon/twohanded/fireaxe // DEM AXES MAN, marker -Agouri
icon_state = "fireaxe0"
base_icon = "fireaxe"
name = "fire axe"
desc = "Truly, the weapon of a madman. Who would think to fight fire with an axe?"
force = 5
@@ -113,14 +117,9 @@
edge = 1
w_class = 4.0
slot_flags = SLOT_BACK
force_unwielded = 10
force_wielded = 40
attack_verb = list("attacked", "chopped", "cleaved", "torn", "cut")
/obj/item/weapon/twohanded/fireaxe/update_icon() //Currently only here to fuck with the on-mob icons.
icon_state = "fireaxe[wielded]"
return
/obj/item/weapon/twohanded/fireaxe/afterattack(atom/A as mob|obj|turf|area, mob/user as mob, proximity)
if(!proximity) return
..()
@@ -142,6 +141,7 @@
*/
/obj/item/weapon/twohanded/dualsaber
icon_state = "dualsaber0"
base_icon = "dualsaber"
name = "double-bladed energy sword"
desc = "Handle with care."
force = 3
@@ -149,7 +149,6 @@
throw_speed = 1
throw_range = 5
w_class = 2.0
force_unwielded = 3
force_wielded = 30
wieldsound = 'sound/weapons/saberon.ogg'
unwieldsound = 'sound/weapons/saberoff.ogg'
@@ -159,10 +158,6 @@
sharp = 1
edge = 1
/obj/item/weapon/twohanded/dualsaber/update_icon()
icon_state = "dualsaber[wielded]"
return
/obj/item/weapon/twohanded/dualsaber/attack(target as mob, mob/living/user as mob)
..()
if((CLUMSY in user.mutations) && (wielded) &&prob(40))
@@ -179,4 +174,49 @@
if(wielded)
return 1
else
return 0
return 0
/*
* Glass/makeshift spear
*/
/obj/item/weapon/twohanded/spear
icon_state = "spearglass0"
base_icon = "spearglass"
name = "spear"
desc = "A haphazardly-constructed yet still deadly weapon of ancient design."
force = 11
w_class = 4.0
slot_flags = SLOT_BACK
force_wielded = 22 // Was 13, Buffed - RR
throwforce = 20
throw_speed = 3
edge = 0
sharp = 1
flags = NOSHIELD
hitsound = 'sound/weapons/bladeslice.ogg'
attack_verb = list("attacked", "poked", "jabbed", "torn", "gored")
/*
* Baseball bats
*/
/obj/item/weapon/twohanded/baseballbat
desc = "The quality is a swing and a miss."
name = "wooden bat"
icon_state = "woodbat0"
base_icon = "woodbat"
force = 5
force_wielded = 10
throwforce = 5
throw_speed = 5
throw_range = 10
w_class = 4.0
flags = FPRINT | TABLEPASS
attack_verb = list("struck out", "beat", "bludgeoned", "homerunned")
hitsound = 'sound/weapons/genhit3.ogg'
/obj/item/weapon/twohanded/baseballbat/metal
name = "metal bat"
icon_state = "metalbat0"
base_icon = "metalbat"
force = 7
force_wielded = 15
+30 -36
View File
@@ -241,41 +241,35 @@
locked = 1
update_icon()
/obj/item/weapon/metal_bat
desc = "The quality is a swing and a miss."
name = "Metal Bat"
icon_state = "metalbat"
item_state = "bat_l"
force = 15.0
throwforce = 5.0
throw_speed = 5
throw_range = 10
w_class = 4.0
flags = FPRINT | TABLEPASS
attack_verb = list("struck out", "beat", "bludgeoned", "homerunned")
obj/item/weapon/wirerod
name = "wired rod"
desc = "A rod with some wire wrapped around the top. It'd be easy to attach something to the top bit."
icon_state = "wiredrod"
item_state = "rods"
flags = CONDUCT
force = 8
throwforce = 10
w_class = 3
attack_verb = list("hit", "bludgeoned", "whacked", "bonked")
/obj/item/weapon/pla_bat
desc = "The quality is a swing and a miss."
name = "Plasteel Bat"
icon_state = "plabat"
item_state = "bat_l"
force = 20.0
throwforce = 5.0
throw_speed = 5
throw_range = 10
w_class = 4.0
flags = FPRINT | TABLEPASS
attack_verb = list("struck out", "beat", "bludgeoned", "homerunned")
/obj/item/weapon/wood_bat
desc = "The quality is a swing and a miss."
name = "Wooden Bat"
icon_state = "woodbat"
item_state = "bat_l"
force = 10.0
throwforce = 5.0
throw_speed = 5
throw_range = 10
w_class = 4.0
flags = FPRINT | TABLEPASS
attack_verb = list("struck out", "beat", "bludgeoned", "homerunned")
obj/item/weapon/wirerod/attackby(var/obj/item/I, mob/user as mob)
..()
if(istype(I, /obj/item/weapon/shard))
var/obj/item/weapon/twohanded/spear/S = new /obj/item/weapon/twohanded/spear
user.put_in_hands(S)
user << "<span class='notice'>You fasten the glass shard to the top of the rod with the cable.</span>"
del(I)
del(src)
update_icon(user)
else if(istype(I, /obj/item/weapon/wirecutters))
var/obj/item/weapon/melee/baton/cattleprod/P = new /obj/item/weapon/melee/baton/cattleprod
user.put_in_hands(P)
user << "<span class='notice'>You fasten the wirecutters to the top of the rod with the cable, prongs outward.</span>"
del(I)
del(src)
update_icon(user)
update_icon(user)
@@ -322,8 +322,23 @@
New()
..()
new /obj/item/clothing/under/color/orange( src )
new /obj/item/clothing/shoes/orange( src )
switch(id)
if("Cell 1")
new /obj/item/clothing/under/color/orange/cell1(src)
new /obj/item/clothing/shoes/orange(src)
if("Cell 2")
new /obj/item/clothing/under/color/orange/cell2(src)
new /obj/item/clothing/shoes/orange(src)
if("Cell 3")
new /obj/item/clothing/under/color/orange/cell3(src)
new /obj/item/clothing/shoes/orange(src)
if("Cell 4")
new /obj/item/clothing/under/color/orange/cell4(src)
new /obj/item/clothing/shoes/orange(src)
else
new /obj/item/clothing/under/color/orange(src)
new /obj/item/clothing/shoes/orange(src)
return