Skip to content

Commit

Permalink
фиксы мое
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoonij authored Sep 22, 2024
1 parent c1affa1 commit cc53fa0
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions code/__DEFINES/traits/sources.dm
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,5 @@
#define EVIL_FAX_TRAIT "evil_fax"
#define CORGI_HARDSUIT_TRAIT "corgi_hardsuit"


#define HULK_TRAIT "hulk_trait"
2 changes: 1 addition & 1 deletion code/datums/spells/shapeshift.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

/obj/effect/proc_holder/spell/shapeshift/proc/Shapeshift(mob/living/caster)
for(var/mob/living/mob in caster)
if(HAS_TRAIT(mob, TRAIT_GODMODE))
if(HAS_TRAIT_FROM(mob, TRAIT_GODMODE, UNIQUE_TRAIT_SOURCE(src)))
to_chat(caster, span_warning("You're already shapeshifted!"))
return

Expand Down
1 change: 0 additions & 1 deletion code/game/objects/items/weapons/anomaly_extract.dm
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@
original_body = user
ADD_TRAIT(original_body, TRAIT_NO_TRANSFORM, UNIQUE_TRAIT_SOURCE(src))
slimeme.add_traits(list(TRAIT_NO_TRANSFORM, TRAIT_GODMODE), UNIQUE_TRAIT_SOURCE(src))
ADD_TRAIT(user, TRAIT_GODMODE, UNIQUE_TRAIT_SOURCE(src))
user.mind.transfer_to(slimeme)
slimeme.update_sight()
user.move_to_null_space()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@

vampire.stop_sucking()
original_body = user
user.add_traits(list(TRAIT_NO_TRANSFORM, TRAIT_GODMODE), UNIQUE_TRAIT_SOURCE(src))
original_body.add_traits(list(TRAIT_NO_TRANSFORM, TRAIT_GODMODE), UNIQUE_TRAIT_SOURCE(src))
vampire_animal.add_traits(list(TRAIT_NO_TRANSFORM, TRAIT_GODMODE), UNIQUE_TRAIT_SOURCE(src))
user.forceMove(vampire_animal)
user.mind.transfer_to(vampire_animal)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/simple_animal/hulk.dm
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@

for(var/mob/mob in contents)
mob.forceMove(loc)
REMOVE_TRAIT(mob, TRAIT_GODMODE, UNIQUE_TRAIT_SOURCE(src))
REMOVE_TRAIT(mob, TRAIT_GODMODE, HULK_TRAIT)
if(isliving(mob))
var/mob/living/living = mob
living.Paralyse(30 SECONDS)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/simple_animal/hulk_power.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
playsound(user, 'sound/effects/bamf.ogg', CHANNEL_BUZZ)
Monster.original_body = user
user.forceMove(Monster)
ADD_TRAIT(user, TRAIT_GODMODE, UNIQUE_TRAIT_SOURCE(src))
ADD_TRAIT(user, TRAIT_GODMODE, HULK_TRAIT)
user.mind.transfer_to(Monster)
Monster.say(pick("RAAAAAAAARGH!", "HNNNNNNNNNGGGGGGH!", "GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", "AAAAAAARRRGH!" ))

Expand Down
9 changes: 5 additions & 4 deletions code/modules/power/tesla/energy_ball.dm
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,11 @@
qdel(src)

/obj/singularity/energy_ball/proc/dust_mobs(atom/atom)
if(isliving(atom))
var/mob/living/living = atom
if(living.incorporeal_move || HAS_TRAIT(living, TRAIT_GODMODE))
return
if(!isliving(atom))
return
var/mob/living/living = atom
if(living.incorporeal_move || HAS_TRAIT(living, TRAIT_GODMODE))
return
if(!iscarbon(atom))
return
for(var/obj/machinery/power/grounding_rod/rod in orange(src, 2))
Expand Down

0 comments on commit cc53fa0

Please sign in to comment.