From 38c5fb6f80bb35e8268c3d2daa4ea0a5a50c9709 Mon Sep 17 00:00:00 2001 From: SuhEugene <32931701+SuhEugene@users.noreply.github.com> Date: Fri, 15 Sep 2023 00:32:49 +0300 Subject: [PATCH] Resolve conflicts --- code/_onclick/item_attack.dm | 12 ----------- code/modules/mob/living/living_defense.dm | 16 --------------- .../mob/living/simple_animal/defense.dm | 20 ------------------- 3 files changed, 48 deletions(-) diff --git a/code/_onclick/item_attack.dm b/code/_onclick/item_attack.dm index fbb82033fa9fc..2f5378278baba 100644 --- a/code/_onclick/item_attack.dm +++ b/code/_onclick/item_attack.dm @@ -298,7 +298,6 @@ avoid code duplication. This includes items that may sometimes act as a standard SPAN_WARNING("You felt something bounce off you harmlessly.") ) return TRUE -<<<<<<< ours var/hit_zone = resolve_item_attack(weapon, user, user.zone_sel? user.zone_sel.selecting : ran_zone()) if (!hit_zone) @@ -324,12 +323,6 @@ avoid code duplication. This includes items that may sometimes act as a standard "Was attacked with \a [weapon] (DAMTYE: [uppertext(weapon.damtype)])", "used \a [weapon] (DAMTYE: [uppertext(weapon.damtype)]) to attack" ) -======= - - var/hit_zone = resolve_item_attack(weapon, user, user.zone_sel? user.zone_sel.selecting : ran_zone()) - if (!hit_zone) - return TRUE ->>>>>>> theirs var/datum/attack_result/result = hit_zone if (istype(result)) @@ -458,11 +451,6 @@ avoid code duplication. This includes items that may sometimes act as a standard * Returns boolean to indicate whether or not damage was dealt. */ /obj/item/proc/apply_hit_effect(mob/living/target, mob/living/user, hit_zone) -<<<<<<< ours -======= - if (hitsound) - playsound(loc, hitsound, 75, TRUE) ->>>>>>> theirs var/power = force if (MUTATION_HULK in user.mutations && damtype == DAMAGE_BRUTE) //Repeat this check here because it is only used under use_weapon to check if it's even possible to damage the mob. Value not carried over here. power *= 2 diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm index 99675b77b0c25..85170b9e950a6 100644 --- a/code/modules/mob/living/living_defense.dm +++ b/code/modules/mob/living/living_defense.dm @@ -133,22 +133,6 @@ ///Called when the mob is hit with an item in combat. Returns the blocked result /mob/living/proc/hit_with_weapon(obj/item/I, mob/living/user, effective_force, hit_zone) -<<<<<<< ours -======= - var/weapon_mention - if(I.attack_message_name()) - weapon_mention = " with [I.attack_message_name()]" - visible_message(SPAN_DANGER("\The [src] has been [length(I.attack_verb)? pick(I.attack_verb) : "attacked"][weapon_mention] by \the [user]!")) - - . = standard_weapon_hit_effects(I, user, effective_force, hit_zone) - - if (I.damtype == DAMAGE_BRUTE && prob(33)) // Added blood for whacking non-humans too - var/turf/simulated/location = get_turf(src) - if(istype(location)) location.add_blood_floor(src) - -///returns false if the effects failed to apply for some reason, true otherwise. -/mob/living/proc/standard_weapon_hit_effects(obj/item/I, mob/living/user, effective_force, hit_zone) ->>>>>>> theirs if(!effective_force) return FALSE diff --git a/code/modules/mob/living/simple_animal/defense.dm b/code/modules/mob/living/simple_animal/defense.dm index a05330f10827a..353eb5dc511ff 100644 --- a/code/modules/mob/living/simple_animal/defense.dm +++ b/code/modules/mob/living/simple_animal/defense.dm @@ -59,10 +59,6 @@ return -<<<<<<< ours -======= - ->>>>>>> theirs /mob/living/simple_animal/use_tool(obj/item/tool, mob/user, list/click_params) // Butcher's Cleaver - Butcher dead mob if (istype(tool, /obj/item/material/knife/kitchen/cleaver)) @@ -125,25 +121,14 @@ return ..() -<<<<<<< ours /mob/living/simple_animal/post_use_item(obj/item/tool, mob/living/user, interaction_handled, use_call) -======= -/mob/living/simple_animal/post_use_item(obj/item/tool, mob/living/user, interaction_handled, use_call, click_params) ->>>>>>> theirs if (interaction_handled && ai_holder && (use_call == "attack" || use_call == "weapon")) ai_holder.react_to_attack(user) ..() -<<<<<<< ours /mob/living/simple_animal/hit_with_weapon(obj/item/O, mob/living/user, effective_force, hit_zone) if(O.force <= resistance) -======= -/mob/living/simple_animal/hit_with_weapon(obj/item/O, mob/living/user, effective_force, hit_zone) - - visible_message(SPAN_DANGER("\The [src] has been attacked with \the [O] by [user]!")) - if (O.force <= resistance) ->>>>>>> theirs to_chat(user, SPAN_DANGER("This weapon is ineffective; it does no damage.")) return FALSE @@ -158,11 +143,6 @@ adjustBruteLoss(damage) if (O.edge || O.sharp) adjustBleedTicks(damage) -<<<<<<< ours -======= - if (ai_holder) - ai_holder.react_to_attack(user) ->>>>>>> theirs return TRUE /mob/living/simple_animal/proc/reflect_unarmed_damage(mob/living/carbon/human/attacker, damage_type, description)