Skip to content

Commit

Permalink
Humble Fix Bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Core0verload committed May 21, 2016
1 parent be7c09b commit 1af2a47
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 34 deletions.
33 changes: 9 additions & 24 deletions code/datums/material_container.dm
Original file line number Diff line number Diff line change
Expand Up @@ -218,62 +218,47 @@


/datum/material
var/name
var/amount = 0
var/material_type = null
var/sheet_type = null

/datum/material/metal

/datum/material/metal/New()
..()
name = "Metal"
material_type = MAT_METAL
sheet_type = /obj/item/stack/sheet/metal

/datum/material/glass

/datum/material/glass/New()
..()
name = "Glass"
material_type = MAT_GLASS
sheet_type = /obj/item/stack/sheet/glass

/datum/material/silver

/datum/material/silver/New()
..()
name = "Silver"
material_type = MAT_SILVER
sheet_type = /obj/item/stack/sheet/mineral/silver

/datum/material/gold

/datum/material/gold/New()
..()
name = "Gold"
material_type = MAT_GOLD
sheet_type = /obj/item/stack/sheet/mineral/gold

/datum/material/diamond

/datum/material/diamond/New()
..()
name = "Diamond"
material_type = MAT_DIAMOND
sheet_type = /obj/item/stack/sheet/mineral/diamond

/datum/material/uranium

/datum/material/uranium/New()
..()
name = "Uranium"
material_type = MAT_URANIUM
sheet_type = /obj/item/stack/sheet/mineral/uranium

/datum/material/plasma

/datum/material/plasma/New()
..()
name = "Solid Plasma"
material_type = MAT_PLASMA
sheet_type = /obj/item/stack/sheet/mineral/plasma

/datum/material/bananium

/datum/material/bananium/New()
..()
name = "Bananium"
material_type = MAT_BANANIUM
sheet_type = /obj/item/stack/sheet/mineral/bananium
3 changes: 2 additions & 1 deletion code/game/machinery/vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
/obj/machinery/vending/snack = "Getmore Chocolate Corp",
/obj/machinery/vending/cola = "Robust Softdrinks",
/obj/machinery/vending/cigarette = "ShadyCigs Deluxe",
/obj/machinery/vending/autodrobe = "AutoDrobe")
/obj/machinery/vending/autodrobe = "AutoDrobe",
/obj/machinery/vending/clothing = "ClothesMate")

/obj/item/weapon/circuitboard/machine/vendor/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/screwdriver))
Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/living/carbon/human/blood.dm
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
if (!injected || !our || !dna)
return

if (!(injected.data["blood_type"] in get_safe_blood(dna.blood_type)) || injected.data["species"] != dna.species.id)
if (!(injected.data["blood_type"] in get_safe_blood(dna.blood_type)) || (injected.data["species"] && injected.data["species"] != dna.species.id))
reagents.add_reagent("toxin",amount * 0.5)
our.on_merge(injected.data) //still transfer viruses and such, even if incompatibles bloods
reagents.update_total()
Expand Down Expand Up @@ -255,7 +255,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
if("A-")
return list("A-", "O-")
if("A+")
return list("A", "A+", "O-", "O+")
return list("A-", "A+", "O-", "O+")
if("B-")
return list("B-", "O-")
if("B+")
Expand Down
3 changes: 3 additions & 0 deletions code/modules/projectiles/guns/energy/special.dm
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@
ammo_type = list(/obj/item/ammo_casing/energy/plasma)
flags = CONDUCT | OPENCONTAINER
attack_verb = list("attacked", "slashed", "cut", "sliced")
force = 12
sharpness = IS_SHARP
can_charge = 0
heat = 3800

Expand Down Expand Up @@ -253,6 +255,7 @@
name = "advanced plasma cutter"
icon_state = "adv_plasmacutter"
origin_tech = "combat=3;materials=4;magnets=3;plasmatech=3;engineering=2"
force = 15
ammo_type = list(/obj/item/ammo_casing/energy/plasma/adv)

/obj/item/weapon/gun/energy/wormhole_projector
Expand Down
1 change: 1 addition & 0 deletions code/modules/projectiles/projectile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
mouse_opacity = 0
hitsound = 'sound/weapons/pierce.ogg'
pressure_resistance = INFINITY
burn_state = LAVA_PROOF
var/def_zone = "" //Aiming at
var/mob/firer = null//Who shot it
var/obj/item/ammo_casing/ammo_casing = null
Expand Down
16 changes: 9 additions & 7 deletions code/modules/projectiles/projectile/special.dm
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
icon_state = "plasmacutter"
damage_type = BRUTE
damage = 5
range = 3
range = 5

/obj/item/projectile/plasma/New()
var/turf/proj_turf = get_turf(src)
Expand All @@ -227,22 +227,24 @@
var/datum/gas_mixture/environment = proj_turf.return_air()
if(environment)
var/pressure = environment.return_pressure()
if(pressure < 30)
if(pressure < 60)
name = "full strength plasma blast"
damage *= 3
damage *= 4
..()

/obj/item/projectile/plasma/on_hit(atom/target)
. = ..()
if(istype(target, /turf/closed/mineral))
var/turf/closed/mineral/M = target
M.gets_drilled(firer)
range = max(range - 1, 1)
return -1
Range()
if(range > 0)
return -1

/obj/item/projectile/plasma/adv
range = 5
damage = 7
range = 7

/obj/item/projectile/plasma/adv/mech
damage = 10
range = 6
range = 8

0 comments on commit 1af2a47

Please sign in to comment.