Skip to content

Commit

Permalink
правки
Browse files Browse the repository at this point in the history
  • Loading branch information
Anorak2024 committed Dec 7, 2024
1 parent e71be77 commit c938eb6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
9 changes: 1 addition & 8 deletions code/game/gamemodes/miniantags/borer/borer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
real_name = "host brain"
tts_seed = "Gman"
var/host_resisting = FALSE
var/should_stop_resist = FALSE

/mob/living/captive_brain/say(message)
if(client)
Expand Down Expand Up @@ -41,11 +40,7 @@
return B.host.say_understands(other, speaking)

/mob/living/captive_brain/proc/try_stop_resist()
if(should_stop_resist)
should_stop_resist = FALSE
return FALSE

return TRUE
return host_resisting

/mob/living/captive_brain/resist()
var/mob/living/simple_animal/borer/B = loc
Expand All @@ -60,12 +55,10 @@
var/delay = (rand(350,450) + B.host.getBrainLoss())

if(!do_after(src, delay, B.host, ALL, extra_checks = CALLBACK(src, PROC_REF(try_stop_resist))))
should_stop_resist = FALSE
host_resisting = FALSE
return

return_control(B)
should_stop_resist = FALSE
host_resisting = FALSE

/mob/living/captive_brain/proc/return_control(mob/living/simple_animal/borer/B)
Expand Down
6 changes: 2 additions & 4 deletions code/modules/antagonists/borer/borer_action.dm
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
/datum/action/innate/borer/torment/Activate()
var/mob/living/simple_animal/borer/borer = isborer(owner) ? owner : owner.has_brain_worms()
var/mob/living/carbon/host = borer.host
var/cost = 70 - borer.antag_datum.borer_rank.rank * 10
var/cost = 70 - borer.antag_datum.borer_rank.rank_ability_amplifier * 10
if(borer.chemicals < cost)
to_chat(owner, "Вам требуется [cost] химикатов для вызова психической агонии!")
return
Expand All @@ -106,9 +106,7 @@
if(borer.host_brain)
to_chat(borer.host_brain, span_danger("<FONT size=3>Ужасная, жгучая агония пронзает вас насквозь, \
вырывая беззвучный крик из глубин вашего запертого разума!</FONT>"))
if(borer.host_brain.host_resisting)
borer.host_brain.should_stop_resist = TRUE

borer.host_brain.host_resisting = FALSE
return

to_chat(host, span_danger("<FONT size=3>Ужасная, жгучая агония пронзает вас насквозь, \
Expand Down
10 changes: 5 additions & 5 deletions code/modules/antagonists/borer/borer_rank.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var/required_reproductions = null // how many reproductions we need to gain new rank
var/datum/antagonist/borer/parent
var/mob/living/simple_animal/borer/owner
var/rank
var/rank_ability_amplifier

/datum/borer_rank/Destroy(force)
parent = null
Expand All @@ -24,21 +24,21 @@
/datum/borer_rank/young
rankname = "Young"
required_reproductions = REPRODUCTIONS_TO_MATURE
rank = 0
rank_ability_amplifier = 0

/datum/borer_rank/mature
rankname = "Mature"
required_reproductions = REPRODUCTIONS_TO_ADULT
rank = 1
rank_ability_amplifier = 1

/datum/borer_rank/adult
rankname = "Adult"
required_reproductions = REPRODUCTIONS_TO_ELDER
rank = 2
rank_ability_amplifier = 2

/datum/borer_rank/elder
rankname = "Elder"
rank = 3
rank_ability_amplifier = 3

/datum/borer_rank/young/on_apply()
owner.update_transform(0.5) // other ranks should be gained and processed only with antag datum
Expand Down

0 comments on commit c938eb6

Please sign in to comment.