Skip to content

Commit

Permalink
balance: borers costs (#6197)
Browse files Browse the repository at this point in the history
* fasfsdfsa

* fsdfsd
  • Loading branch information
Anorak2024 authored Nov 22, 2024
1 parent 9466401 commit cd9700c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
8 changes: 4 additions & 4 deletions code/__DEFINES/borer.dm
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#define REPRODUCTIONS_TO_MATURE 3
#define REPRODUCTIONS_TO_ADULT 6
#define REPRODUCTIONS_TO_ELDER 10
#define HEAD_FOCUS_COST 9
#define TORSO_FOCUS_COST 15
#define HANDS_FOCUS_COST 5
#define LEGS_FOCUS_COST 10
#define HEAD_FOCUS_COST 4.5
#define TORSO_FOCUS_COST 7.5
#define HANDS_FOCUS_COST 2.5
#define LEGS_FOCUS_COST 5
#define SCALING_MAX_CHEM 355
#define SCALING_CHEM_GAIN 15
#define BORER_RANK_YOUNG /datum/borer_rank/young
Expand Down
10 changes: 1 addition & 9 deletions code/modules/antagonists/borer/borer_spell.dm
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,13 @@
action_icon_state = "god_transmit"
need_active_overlay = TRUE

var/evo_cost = 0.3

/obj/effect/proc_holder/spell/borer_force_say/create_new_targeting()
return new /datum/spell_targeting/self

/obj/effect/proc_holder/spell/borer_force_say/can_cast(mob/living/simple_animal/borer/user, charge_check = TRUE, show_message = FALSE)
if (user.stat || user.host?.stat)
return FALSE

if(user.antag_datum.evo_points < evo_cost)
to_chat(user, "Вам требуется еще [evo_cost - user.antag_datum.evo_points] очков эволюции для подчинения голосовых связок хозяина.")
return FALSE

. = ..()

/obj/effect/proc_holder/spell/borer_force_say/cast(list/targets, mob/living/simple_animal/borer/user)
Expand All @@ -133,10 +127,8 @@
if(!force_say_content)
return

if(user.controlling || user.stat || user.host?.stat || user.antag_datum.evo_points < evo_cost) // we really need that double check
if(user.controlling || user.stat || user.host?.stat) // we really need that double check
return

user.host.say(force_say_content)
user.antag_datum.evo_points -= evo_cost

add_attack_logs(user, user.host, "Forcesaid: [force_say_content]")

0 comments on commit cd9700c

Please sign in to comment.