Skip to content

Commit

Permalink
Total unarmed balancing + quirk changes (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSwagmeyer committed Apr 15, 2024
1 parent 20d2552 commit 1509944
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 11 deletions.
9 changes: 8 additions & 1 deletion code/datums/traits/good.dm
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ GLOBAL_LIST_INIT(pa_repair, list(
var/mob/living/carbon/human/H = quirk_holder
H.dna.species.punchdamagelow = IRON_FIST_PUNCH_DAMAGE_LOW
H.dna.species.punchdamagehigh = IRON_FIST_PUNCH_DAMAGE_MAX

/*
/datum/quirk/steel_fist
name = "Fists of Steel"
desc = "You have MASSIVE fists of kung-fury! Even MORE increases unarmed damage."
Expand All @@ -552,6 +552,7 @@ GLOBAL_LIST_INIT(pa_repair, list(
var/mob/living/carbon/human/H = quirk_holder
H.dna.species.punchdamagelow = STEEL_FIST_PUNCH_DAMAGE_LOW
H.dna.species.punchdamagehigh = STEEL_FIST_PUNCH_DAMAGE_MAX
*/

/datum/quirk/light_step
name = "Glass Walker"
Expand Down Expand Up @@ -761,6 +762,7 @@ GLOBAL_LIST_INIT(pa_repair, list(
lose_text = span_danger("You know? Being cold kind of sucks actually.")
locked = FALSE

/*
/* /datum/quirk/radimmune
name = "Radiation - Immune"
desc = "Gieger Counters are for suckers."
Expand All @@ -778,6 +780,7 @@ GLOBAL_LIST_INIT(pa_repair, list(
gain_text = span_notice("You've decided radiation just doesn't matter much.")
lose_text = span_danger("You no longer feel like you could roll around in a rad puddle for a while.")
locked = FALSE
*/

/datum/quirk/radimmunesorta
name = "Radiation - Sorta Immune"
Expand All @@ -788,6 +791,7 @@ GLOBAL_LIST_INIT(pa_repair, list(
lose_text = span_danger("You no longer think you should hang out next to rad puddles.")
locked = FALSE

/*
/datum/quirk/nohunger
name = "Does not Eat"
desc = "You don't need to eat to live, lucky you."
Expand All @@ -796,6 +800,7 @@ GLOBAL_LIST_INIT(pa_repair, list(
gain_text = span_notice("Your need for food has left you.")
lose_text = span_danger("GOD YOU WANT A BURGER SO BAD.")
locked = FALSE
*/

/datum/quirk/thickskin
name = "Thick Skin"
Expand Down Expand Up @@ -833,6 +838,7 @@ GLOBAL_LIST_INIT(pa_repair, list(
lose_text = span_danger("What's a two by four again?")
locked = FALSE

/*
/datum/quirk/grappler
name = "Trained Grappler"
desc = "You've got real skills when it comes to grabbing people by the bits!"
Expand All @@ -859,6 +865,7 @@ GLOBAL_LIST_INIT(pa_repair, list(
gain_text = span_notice("They are already dead.")
lose_text = span_danger("Your fists no longer feel so powerful.")
locked = FALSE
*/

/datum/quirk/quietstep
name = "Quiet Step"
Expand Down
3 changes: 2 additions & 1 deletion code/datums/traits/negative.dm
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ Edit: TK~ This is the dumbest fucking shit I've ever seen in my life. This isn
mood_change = -5
timeout = 3 MINUTES

/*
/datum/quirk/catphobia
name = "Phobia - Cats"
desc = "You've had a traumatic past, one that has scarred you for life, and it had something to do with cats."
Expand Down Expand Up @@ -631,7 +632,7 @@ Edit: TK~ This is the dumbest fucking shit I've ever seen in my life. This isn
. = ..()
var/mob/living/carbon/human/H = quirk_holder
H?.cure_trauma_type(/datum/brain_trauma/mild/phobia/eye, TRAUMA_RESILIENCE_ABSOLUTE)

*/

/datum/quirk/mute
name = "Mute"
Expand Down
13 changes: 12 additions & 1 deletion code/datums/traits/neutral.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
lose_text = span_notice("You can taste again!")
medical_record_text = "Patient suffers from ageusia and is incapable of tasting food or reagents."

/*
/datum/quirk/no_chocolate
name = "Chocolate intolerance"
desc = "Your metabolism finds chocolate rather disagreeable."
Expand All @@ -18,7 +19,9 @@
gain_text = span_notice("You feel like eating chocolate is a bad idea.")
lose_text = span_notice("You feel like it's safe to eat chocolate again")
medical_record_text = "Patient has an aversion to theobromine, and therefore cannot have chocolate."
*/

/*
/datum/quirk/white_woman
name = "Peanutbutter difficulties"
desc = "Your tongue has difficulty handling the adhesiveness of peanut butter"
Expand All @@ -27,6 +30,7 @@
gain_text = span_notice("Your tongue lacks the manipulation to properly eat peanut butter.")
lose_text = span_notice("Your tongue is skilled at taking on sticky peanut butter.")
medical_record_text = "Patient's tongue lacks the dexterity required to eat peanut butter."
*/

/datum/quirk/autobrew //sugary foods create ethanol
name = "Autobrewery syndrome"
Expand Down Expand Up @@ -263,6 +267,8 @@
species.liked_food |= MEAT
if(initial(species.disliked_food) & ~MEAT)
species.disliked_food &= ~MEAT

/*
/datum/quirk/hydra
name = "Hydra Heads"
desc = "You are a tri-headed creature. To use, format your name like (Rucks-Sucks-Ducks) and use the action button in the top left."
Expand Down Expand Up @@ -309,6 +315,8 @@
hydra.visible_message("<span class='notice'>[hydra.name] pulls the rest of their heads back; and puts [selhead]'s forward.</span>", \
"<span class='notice'>You are now talking as [selhead]!</span>", ignored_mobs=owner)
*/

/datum/quirk/sheltered
name = "Sheltered"
desc = "For one reason or another, you either can't or haven't learned English."
Expand Down Expand Up @@ -372,7 +380,7 @@
/datum/quirk/smol/remove()
if(istype(quirk_holder))
quirk_holder.RemoveElement(/datum/element/mob_holder) // undog

/*
/datum/quirk/cat
name = "A cat!"
desc = "You identify as a cat! (Mostly to help identify your species mechanically)"
Expand Down Expand Up @@ -410,6 +418,7 @@
desc = "You identify as a dog! (Mostly to help identify your species mechanically)"
value = 0
mob_trait = TRAIT_DOG
*/

/datum/quirk/photographer
name = "Photographer"
Expand Down Expand Up @@ -455,6 +464,7 @@
if(!human_holder.put_in_hands(folder))
folder.forceMove(get_turf(human_holder))

/*
/datum/quirk/zoomies
name = "Zoomies"
desc = "You can sprint twice as far before you begin to get tired. Just don't run into things."
Expand All @@ -466,3 +476,4 @@
desc = "You never tire of sprinting at all, just be extremely careful not to run into things."
value = 0
mob_trait = TRAIT_SUPER_ZOOMIES
*/
19 changes: 11 additions & 8 deletions code/game/objects/items/melee/f13onehanded.dm
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,8 @@ obj/item/melee/onehanded/knife/switchblade
icon = 'icons/fallout/objects/melee/melee.dmi'
lefthand_file = 'icons/fallout/onmob/weapons/melee1h_lefthand.dmi'
righthand_file = 'icons/fallout/onmob/weapons/melee1h_righthand.dmi'
attack_speed = CLICK_CD_MELEE * 0.9
slot_flags = ITEM_SLOT_BELT | ITEM_SLOT_GLOVES
attack_speed = CLICK_CD_MELEE * 0.9
w_class = WEIGHT_CLASS_SMALL
flags_1 = CONDUCT_1
sharpness = SHARP_NONE
Expand All @@ -697,8 +697,8 @@ obj/item/melee/onehanded/knife/switchblade
if(ishuman(user) && slot == SLOT_GLOVES)
ADD_TRAIT(user, TRAIT_UNARMED_WEAPON, "glove")
if(HAS_TRAIT(user, TRAIT_UNARMED_WEAPON))
H.dna.species.punchdamagehigh += force + 8 //Work around for turbo bad code here. Makes this correctly stack with your base damage. No longer makes ghouls the kings of melee.
H.dna.species.punchdamagelow += force + 8
H.dna.species.punchdamagehigh += force //Work around for turbo bad code here. Makes this correctly stack with your base damage. No longer makes ghouls the kings of melee.
H.dna.species.punchdamagelow += force
H.dna.species.attack_sound = hitsound
if(sharpness == SHARP_POINTY || sharpness == SHARP_EDGED)
H.dna.species.attack_verb = pick("slash","slice","rip","tear","cut","dice")
Expand All @@ -710,9 +710,12 @@ obj/item/melee/onehanded/knife/switchblade
H.dna.species.punchdamagehigh = 10
H.dna.species.punchdamagelow = 1
if(HAS_TRAIT(user, TRAIT_IRONFIST))
H.dna.species.punchdamagehigh = 10
H.dna.species.punchdamagelow = 4
if(HAS_TRAIT(user, TRAIT_STEELFIST))
H.dna.species.punchdamagehigh = 12
H.dna.species.punchdamagelow = 6
if(HAS_TRAIT(user, TRAIT_STEELFIST))
if(HAS_TRAIT(user, TRAIT_FEV)) //Holy shit that Supermutant had a powerfist!
H.dna.species.punchdamagehigh = 16
H.dna.species.punchdamagelow = 10
H.dna.species.attack_sound = 'sound/weapons/punch1.ogg'
Expand Down Expand Up @@ -755,8 +758,8 @@ obj/item/melee/onehanded/knife/switchblade
icon_state = "spiked"
item_state = "spiked"
sharpness = SHARP_POINTY
armour_penetration = 0.1
force = 28
armour_penetration = 0.10

// Sappers Keywords: Damage 27
/obj/item/melee/unarmed/sappers
Expand All @@ -771,7 +774,7 @@ obj/item/melee/onehanded/knife/switchblade
. = ..()
if(!istype(M))
return
M.apply_damage(20, STAMINA, "head", M.run_armor_check("head", "melee"))
M.apply_damage(10, STAMINA, "chest", M.run_armor_check("chest", "melee"))

// Tiger claws Keywords: Damage 33, Pointy
/obj/item/melee/unarmed/tigerclaw
Expand Down Expand Up @@ -816,7 +819,7 @@ obj/item/melee/onehanded/knife/switchblade
icon_state = "punch_dagger"
item_state = "punch_dagger"
force = 29
armour_penetration = 0.12
armour_penetration = 0.1
sharpness = SHARP_POINTY
attack_verb = list("stabbed", "sliced", "pierced", "diced", "cut")
hitsound = 'sound/weapons/bladeslice.ogg'
Expand All @@ -837,7 +840,7 @@ obj/item/melee/unarmed/punchdagger/cyborg
slot_flags = ITEM_SLOT_GLOVES
w_class = WEIGHT_CLASS_NORMAL
force = 35
armour_penetration = 1
armour_penetration = 0.15
sharpness = SHARP_EDGED
attack_verb = list("slashed", "sliced", "torn", "ripped", "diced", "cut")
hitsound = 'sound/weapons/bladeslice.ogg'
Expand Down

0 comments on commit 1509944

Please sign in to comment.