Skip to content

Commit

Permalink
Feat: rebalance mercenary exosuit uplink item (#673)
Browse files Browse the repository at this point in the history
Практика показала, что мерк мехи хороши, но немного слишком. Теперь Нюка
может купить одного меха без войны и два с войной. Цена увеличена на
40ТК, теперь она 300. В одном из следующих ПРов, ОБР получит своего
меха.
Пишите, если код начнёт себя вести не так, как должен.

![image](https://github.com/ss220-space/Baystation12/assets/88627712/6bdde15a-9bbb-45cd-912c-c3eeaf9657fe)

![image](https://github.com/ss220-space/Baystation12/assets/88627712/b76b3403-ce4f-42ca-ad78-55fd438531b7)

---------

Co-authored-by: SuhEugene <[email protected]>
  • Loading branch information
AmShegars and SuhEugene authored Nov 13, 2023
1 parent f260ecf commit 8eca40e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions code/datums/uplink/uplink_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var/datum/uplink/uplink = new()
var/list/datum/antagonist/antag_roles = list("Exclude", MODE_DEITY) // Antag roles this item is displayed to. If empty, display to all. If it includes 'Exclude", anybody except this role can view it

/datum/uplink_item/item
var/static/MAX_MECH = 1
var/path = null

/datum/uplink_item/proc/buy(var/obj/item/device/uplink/U, var/mob/user)
Expand Down
20 changes: 11 additions & 9 deletions infinity/code/datums/uplink/badassery.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,21 @@
antag_roles = list(MODE_MERCENARY)
path = /obj/item/storage/backpack/dufflebag/syndie_kit/heavy

/datum/uplink_item/item/badassery/mech
name = "Syndicate Mech"
desc = "Special heavy mech with cool weaponery. It has: taser, laser and shield generator. Ideal for murderbone."
item_cost = DEFAULT_TELECRYSTAL_AMOUNT * 2
antag_roles = list(MODE_MERCENARY)
path = /mob/living/exosuit/premade/heavy/merc

/datum/uplink_item/item/badassery/mech
name = "Combat Mech"
var/static/BOUGHT_MECH = 0
desc = "A terrible and at the same time beautiful combat mech to destroy all living things in your way. Comes with special plasma rifle, machinegun and shielding drone. Also, it is almoust EMP-proof!"
item_cost = DEFAULT_TELECRYSTAL_AMOUNT * 2
item_cost = 300
antag_roles = list(MODE_MERCENARY)
path = /mob/living/exosuit/premade/merc

/datum/uplink_item/item/badassery/mech/get_goods(var/obj/item/device/uplink/U, var/loc)
if(MAX_MECH <= 0)
U.visible_message("[U.loc] Превышен лимит бронетехники для данной миссии. Обьявите войну для дополнительной единицы.\"")
return new /obj/item/stack/telecrystal(loc, 300)
MAX_MECH--
if(++BOUGHT_MECH == 2)
command_announcement.Announce("В секторе была замечена телепортация большого количества бронетехники Мародёров Горлекса.", "Показания датчиков [station_name()]" , msg_sanitized = 1, zlevels = GLOB.using_map.station_levels)
return new /mob/living/exosuit/premade/merc(loc)

/datum/uplink_item/item/badassery/tobacco
name = "Strong tobacco"
Expand Down
1 change: 1 addition & 0 deletions infinity/code/datums/uplink/services.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
U.visible_message("[U.loc] buzzez and declares, \"Unable to teleport telecrystals.\"")
return 0
command_announcement.Announce("В секторе была замечена телепортация большого объема телекристаллов, использующихся Горлекскими Мародерами. Рекомендуется вызвать поддержку с ЦК для урегулирования ситуации.", "Показания датчиков [station_name()]" , msg_sanitized = 1, zlevels = GLOB.using_map.station_levels)
MAX_MECH++
return new /obj/item/stack/telecrystal(loc, 781)

0 comments on commit 8eca40e

Please sign in to comment.