Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Горохострел (вместо револьверного дерева) #13498

Merged
merged 44 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
1c4060d
dasda
maleyvich Jul 26, 2024
75d1e5c
mmm
maleyvich Aug 16, 2024
8a6a592
Update iv_drip.dm
Danistans2 Aug 17, 2024
68d4f6d
Update iv_drip.dm
Danistans2 Aug 17, 2024
79ab1dc
Merge branch 'TauCetiStation:master' into master
Danistans2 Aug 19, 2024
ca2b56c
Merge pull request #1 from maleyvich/goroxovi-pistolet
Danistans2 Aug 19, 2024
d8e4a17
Update pistol.dm
Danistans2 Aug 21, 2024
e708eac
Update bullets.dm
Danistans2 Aug 21, 2024
56d1bf7
Update bullets.dm
Danistans2 Aug 21, 2024
324067e
Создаем магазин с горохом
Danistans2 Aug 21, 2024
fc8e2d0
Запрещаем вынимать магазин из горохострела
Danistans2 Aug 21, 2024
857bd1a
иконочки (названия заменены)
Danistans2 Aug 21, 2024
250bc37
Иконочки переименованы по количеству патрон
Danistans2 Aug 21, 2024
edfae8e
Update bullets.dm
Danistans2 Aug 21, 2024
3e35e7f
Update magazines.dm
Danistans2 Aug 21, 2024
d33f17d
Add files via upload
Danistans2 Aug 21, 2024
af1ab45
Update hydro.dm
Danistans2 Aug 21, 2024
10d3aff
Update grown.dm
Danistans2 Aug 21, 2024
1b7a053
Спрайты на горох
Danistans2 Aug 21, 2024
8c0b9ef
Обновляем тайпы и
Danistans2 Aug 21, 2024
3038b5d
Опять фиксим тайпы
Danistans2 Aug 21, 2024
09ec7fd
Еще раз фиксим тайпы, но теперь еще и комменты, и немножк иконки
Danistans2 Aug 21, 2024
336010d
Update pistol.dm
Danistans2 Aug 26, 2024
ac2b4f9
Update projectile.dm
Danistans2 Aug 26, 2024
c3ca725
Update bullets.dm
Danistans2 Aug 26, 2024
a6b9707
Update magazines.dm
Danistans2 Aug 26, 2024
5a3abc6
Изменение описания и добавление кейсов
Danistans2 Aug 29, 2024
60415d2
Удалил лишний gun.dmi из корня
Danistans2 Aug 30, 2024
05026a7
Update code/modules/projectiles/guns/projectile/pistol.dm
Danistans2 Aug 31, 2024
b292338
Update code/modules/projectiles/ammunition/bullets.dm
Danistans2 Aug 31, 2024
8e32196
Update code/defines/obj/hydro.dm
Danistans2 Aug 31, 2024
fa8dddc
Update code/defines/obj/hydro.dm
Danistans2 Aug 31, 2024
0318b95
Update code/modules/projectiles/guns/projectile/pistol.dm
Danistans2 Aug 31, 2024
397f943
Выпилил перевод
Danistans2 Aug 31, 2024
8cb293c
Выпилил лишнюю проверку, в том числе проверку падежей
Danistans2 Aug 31, 2024
489d8cc
Выпилил перевод и падежи
Danistans2 Aug 31, 2024
05b2b67
Выпилил падежи. Минимальный перевод как у остальных патрон
Danistans2 Aug 31, 2024
89759dc
Возвращаем на базу украденные русские буквы
Danistans2 Sep 1, 2024
9712cc4
Буквы вернулись и сюда
Danistans2 Sep 1, 2024
59837d3
Никто не читает коммиты, но тут тоже вернулось как было
Danistans2 Sep 1, 2024
1c5fc7f
Падежи, перевод
Danistans2 Sep 1, 2024
4f41034
Добавил падежи самому пишутеру
Danistans2 Sep 1, 2024
fe876af
Update code/defines/obj/hydro.dm
Danistans2 Sep 3, 2024
f2d5800
Update code/modules/projectiles/ammunition/magazines.dm
Danistans2 Sep 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Danistans2 marked this conversation as resolved.
Show resolved Hide resolved
cases = list("семена Горохострела","семян Горохострела","семенам Горохострела","семена Горохострела","семенами Горохострела","семенах Горохострела")
Danistans2 marked this conversation as resolved.
Show resolved Hide resolved
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"
Danistans2 marked this conversation as resolved.
Show resolved Hide resolved
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("гороховый зарядник", "горохового зарядника","гороховому заряднику", "гороховый зарядник", "гороховым зарядником", "гороховом заряднике")
Danistans2 marked this conversation as resolved.
Show resolved Hide resolved
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 = "Горохострел. Стреляет горохом."
Danistans2 marked this conversation as resolved.
Show resolved Hide resolved
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.
Loading