Skip to content

Commit

Permalink
Горохострел (вместо револьверного дерева) (#13498)
Browse files Browse the repository at this point in the history
* dasda

* mmm

* Update iv_drip.dm

Фикс бага с капельницей

* Update iv_drip.dm

* Update pistol.dm

Добавляем горохострел в пушки

* Update bullets.dm

Добавляем пулю

* Update bullets.dm

Еще раз добавляем пулю

* Создаем магазин с горохом

* Запрещаем вынимать магазин из горохострела

* иконочки (названия заменены)

* Иконочки переименованы по количеству патрон

* Update bullets.dm

* Update magazines.dm

* Add files via upload

* Update hydro.dm

* Update grown.dm

* Спрайты на горох

* Обновляем тайпы и

* Опять фиксим тайпы

* Еще раз фиксим тайпы, но теперь еще и комменты, и немножк иконки

* Update pistol.dm

* Update projectile.dm

* Update bullets.dm

* Update magazines.dm

* Изменение описания и добавление кейсов

* Удалил лишний gun.dmi из корня

* Update code/modules/projectiles/guns/projectile/pistol.dm

Co-authored-by: Kiroma <[email protected]>

* Update code/modules/projectiles/ammunition/bullets.dm

Co-authored-by: Kiroma <[email protected]>

* Update code/defines/obj/hydro.dm

Co-authored-by: Kiroma <[email protected]>

* Update code/defines/obj/hydro.dm

Co-authored-by: Kiroma <[email protected]>

* Update code/modules/projectiles/guns/projectile/pistol.dm

Co-authored-by: NinjaPikachuska <[email protected]>

* Выпилил перевод

* Выпилил лишнюю проверку, в том числе проверку падежей

* Выпилил перевод и падежи

* Выпилил падежи. Минимальный перевод как у остальных патрон

* Возвращаем на базу украденные русские буквы

* Буквы вернулись и сюда

* Никто не читает коммиты, но тут тоже вернулось как было

* Падежи, перевод

* Добавил падежи самому пишутеру

* Update code/defines/obj/hydro.dm

Co-authored-by: Azzy <[email protected]>

* Update code/modules/projectiles/ammunition/magazines.dm

Co-authored-by: Azzy <[email protected]>

---------

Co-authored-by: maleyvich <[email protected]>
Co-authored-by: Kiroma <[email protected]>
Co-authored-by: NinjaPikachuska <[email protected]>
Co-authored-by: Azzy <[email protected]>
  • Loading branch information
5 people committed Sep 8, 2024
1 parent 0ddc238 commit ac24c14
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 16 deletions.
15 changes: 8 additions & 7 deletions code/defines/obj/hydro.dm
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,14 @@
return FALSE
return ..() // Fallthrough to item/attackby() so that bags can pick seeds up

/obj/item/seeds/gatfruit
name = "pack of gatfruit seeds"
desc = "These seeds grow into .357 revolvers."
/obj/item/seeds/peashooter
name = "pack of peashooter seeds"
cases = list("семена Горохострела", "семян Горохострела", "семенам Горохострела", "семена Горохострела", "семенами Горохострела", "семенах Горохострела")
desc = "Эти семена вырастают в Горохострел"
icon_state = "seed-gatfruit"
species = "gatfruit"
plantname = "Gatfruit Tree"
product_type = /obj/item/weapon/reagent_containers/food/snacks/grown/gatfruit
species = "peashooter"
plantname = "Peashooter Tree"
product_type = /obj/item/weapon/reagent_containers/food/snacks/grown/peashooter
lifespan = 20
endurance = 20
maturation = 10
Expand Down Expand Up @@ -115,7 +116,7 @@
if(!istype(E, /datum/disease2/effect/gibbingtons))
return
if(prob(holder.stage * 10))
mutatelist = list(/obj/item/seeds/gatfruit)
mutatelist = list(/obj/item/seeds/peashooter)
tray.mutatespecie()

/obj/item/seeds/chiliseed
Expand Down
4 changes: 2 additions & 2 deletions code/modules/cargo/exports/grown.dm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/datum/export/gatfruit
/datum/export/peashooter
unit_name = "strange fruit"
cost = 150
export_types = list(/obj/item/weapon/reagent_containers/food/snacks/grown/gatfruit)
export_types = list(/obj/item/weapon/reagent_containers/food/snacks/grown/peashooter)

/*
/export/grown subtype
Expand Down
7 changes: 7 additions & 0 deletions code/modules/projectiles/ammunition/bullets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
projectile_type = /obj/item/projectile/bullet/midbullet2
m_amt = 300

/obj/item/ammo_casing/pea
name = "Pea bullet casing"
cases = list("гороховый патрон", "горохового патрона", "гороховому патрону", "гороховый патрон", "гороховым патроном", "гороховом патроне")
desc = "Гороховый патрон"
caliber = "Pea"
projectile_type = /obj/item/projectile/bullet/peabullet

/obj/item/ammo_casing/c9mmr
desc = "Патрон от резиновой пули калибра 9мм."
icon_state = "casing_rubber"
Expand Down
9 changes: 9 additions & 0 deletions code/modules/projectiles/ammunition/magazines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -637,3 +637,12 @@
icon_state = "38"
ammo_type = /obj/item/ammo_casing/c45r
max_ammo = 6

/obj/item/ammo_box/magazine/pea
name = "pealoader"
cases = list("гороховый зарядник", "горохового зарядника", "гороховому заряднику", "гороховый зарядник", "гороховым зарядником", "гороховом заряднике")
desc = "Гороховый зарядник для горохового пистолета."
caliber = "Pea"
ammo_type = /obj/item/ammo_casing/pea
max_ammo = 6
origin_tech = "combat=2"
15 changes: 15 additions & 0 deletions code/modules/projectiles/guns/projectile/pistol.dm
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,18 @@
fire_sound = 'sound/weapons/guns/gunshot_light.ogg'
can_be_holstered = TRUE
recoil = 1.5

/obj/item/weapon/gun/projectile/automatic/pistol/peashooter
name = "Peashooter"
desc = "Горохострел. Стреляет горохом."
cases = list("горохострел", "горохострела", "горохострелу", "горохострел", "горохострелом", "горохостреле")
icon_state = "peashooter"
item_state = "peashooter"
origin_tech = "combat=1;materials=1"
initial_mag = /obj/item/ammo_box/magazine/pea
suitable_mags = /obj/item/ammo_box/magazine/pea
can_be_holstered = TRUE

/obj/item/weapon/gun/projectile/automatic/pistol/peashooter/attack_self(mob/living/user)
to_chat(user, "<span class='notice'>Вы не можете вынуть горох из [CASE(src, GENITIVE_CASE)].</span>")
return
5 changes: 5 additions & 0 deletions code/modules/projectiles/projectile/bullets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
hitscan = 1
armor_multiplier = 0.7

/obj/item/projectile/bullet/peabullet
name = "pea bullet"
damage = 5
agony = 5

/obj/item/projectile/bullet/midbullet2 // 9x19
damage = 25

Expand Down
15 changes: 8 additions & 7 deletions code/modules/reagents/reagent_containers/food/snacks/grown.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1179,16 +1179,17 @@
reagents.add_reagent("nutriment", 1 + round(potency / 5))
bitesize = 1 + round(reagents.total_volume / 2, 1)

/obj/item/weapon/reagent_containers/food/snacks/grown/gatfruit
seed_type = /obj/item/seeds/gatfruit
name = "gatfruit"
desc = "It smells like burning."
icon_state = "gatfruit"
/obj/item/weapon/reagent_containers/food/snacks/grown/peashooter
seed_type = /obj/item/seeds/peashooter
name = "peashooter"
cases = list("горохострел", "горохострела", "горохострелу", "горохострел", "горохострелом", "горохостреле")
desc = "Нераскрывшийся плод горохострела, подозрительно напоминающий пистолет"
icon_state = "peashooter"
potency = 25
filling_color = "#020108"
trash = /obj/item/weapon/gun/projectile/revolver
trash = /obj/item/weapon/gun/projectile/automatic/pistol/peashooter

/obj/item/weapon/reagent_containers/food/snacks/grown/gatfruit/atom_init()
/obj/item/weapon/reagent_containers/food/snacks/grown/peashooter/atom_init()
. = ..()
reagents.add_reagent("potassium", 1 + round(potency / 25, 1))
reagents.add_reagent("carbon", 1 + round(potency / 10, 1))
Expand Down
Binary file modified icons/mob/inhands/guns_lefthand.dmi
Binary file not shown.
Binary file modified icons/mob/inhands/guns_righthand.dmi
Binary file not shown.
Binary file modified icons/obj/gun.dmi
Binary file not shown.
Binary file modified icons/obj/hydroponics/growing.dmi
Binary file not shown.
Binary file modified icons/obj/hydroponics/harvest.dmi
Binary file not shown.

0 comments on commit ac24c14

Please sign in to comment.