Skip to content

Commit

Permalink
adds bunch of negative effects
Browse files Browse the repository at this point in the history
  • Loading branch information
cuberound authored Nov 30, 2023
1 parent 6b2b4c6 commit 6a9a74a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions code/modules/cm_marines/dropship_ammo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@
var/penetration = 10 //AP value pretty much
var/holo_stacks = 100
var/slow_duration = 2
var/accid_per_hit = 10
var/acid_per_hit = 10
var/plasma_drain_hit = 200
var/interference_duration = 10
var/healing_reduction_duration = 10

/obj/structure/ship_ammo/heavygun/get_examine_text(mob/user)
. = ..()
Expand Down Expand Up @@ -179,8 +182,13 @@
bullet_effect.ex_act(EXPLOSION_THRESHOLD_VLOW, null, cause_data)
bullet_effect.apply_armoured_damage(directhit_damage,ARMOR_BULLET,BRUTE,null,penetration)
bullet_effect.AddComponent(/datum/component/bonus_damage_stack, holo_stacks, world.time)
bullet_effect.adjust_effect(slow_duration, SLOW)
bullet_effect.AddComponent(/datum/component/toxic_buildup, acid_per_hit)
bullet_effect.adjust_effect(slow_duration, SLOW)
if(isxeno(bullet_effect))
var/mob/living/carbon/xenomorph/xenomorph = bullet_effect
xenomorph.AddComponent(/datum/component/toxic_buildup, acid_per_hit)
xenomorph.plasma_stored = max(X.plasma_stored - plasma_drain_hit, 0)

Check failure on line 189 in code/modules/cm_marines/dropship_ammo.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "X"

Check warning on line 189 in code/modules/cm_marines/dropship_ammo.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "plasma_stored"
xenomorph.interference += (interference_duration)
xenomorph.AddComponent(/datum/component/healing_reduction, healing_reduction_duration)
else
explosion_effect.ex_act(EXPLOSION_THRESHOLD_VLOW)
impact_tile.ex_act(EXPLOSION_THRESHOLD_VLOW, pick(GLOB.alldirs), cause_data)//moved this
Expand Down

0 comments on commit 6a9a74a

Please sign in to comment.