From cebab397db2e6a90e1a503be34411da77cda81f5 Mon Sep 17 00:00:00 2001 From: Chorden <130075022+Chorden523@users.noreply.github.com> Date: Fri, 8 Mar 2024 01:40:53 +0800 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B3=D0=BE=D1=80=D0=BE=D1=85=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=B5=D0=BB=D0=B0,=20=D1=81=D0=BF=D0=BE=D1=81?= =?UTF-8?q?=D0=BE=D0=B1=D0=BE=D0=B2=20=D0=B5=D0=B3=D0=BE=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D1=83=D1=87=D0=B5=D0=BD=D0=B8=D1=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modular_ss220/modular_ss220.dme | 1 + modular_ss220/peas_shooter/_peas_shooter.dm | 7 +++ modular_ss220/peas_shooter/_peas_shooter.dme | 12 +++++ .../peas_shooter/code/item/peas_shooter.dm | 51 ++++++++++++++++++ .../code/plant/peas_shooter_plant.dm | 20 +++++++ .../icons/inhands/peasshooter_lefthand.dmi | Bin 0 -> 444 bytes .../icons/inhands/peasshooter_righthand.dmi | Bin 0 -> 448 bytes .../peas_shooter/icons/items/peas_shooter.dmi | Bin 0 -> 461 bytes .../peas_shooter/icons/seeds/seed_soybean.dmi | Bin 0 -> 324 bytes 9 files changed, 91 insertions(+) create mode 100644 modular_ss220/peas_shooter/_peas_shooter.dm create mode 100644 modular_ss220/peas_shooter/_peas_shooter.dme create mode 100644 modular_ss220/peas_shooter/code/item/peas_shooter.dm create mode 100644 modular_ss220/peas_shooter/code/plant/peas_shooter_plant.dm create mode 100644 modular_ss220/peas_shooter/icons/inhands/peasshooter_lefthand.dmi create mode 100644 modular_ss220/peas_shooter/icons/inhands/peasshooter_righthand.dmi create mode 100644 modular_ss220/peas_shooter/icons/items/peas_shooter.dmi create mode 100644 modular_ss220/peas_shooter/icons/seeds/seed_soybean.dmi diff --git a/modular_ss220/modular_ss220.dme b/modular_ss220/modular_ss220.dme index 8eaac064718b..c9ff4637fc8d 100644 --- a/modular_ss220/modular_ss220.dme +++ b/modular_ss220/modular_ss220.dme @@ -36,6 +36,7 @@ #include "silicon_hats/_silicon_hats.dme" #include "windows_airbag/_windows_airbag.dme" #include "clumsy_table/_clumsy_table.dme" +#include "peas_shooter/_peas_shooter.dme" // --- MISC --- // #include "administration/_administration.dme" diff --git a/modular_ss220/peas_shooter/_peas_shooter.dm b/modular_ss220/peas_shooter/_peas_shooter.dm new file mode 100644 index 000000000000..81a9db76f3f3 --- /dev/null +++ b/modular_ss220/peas_shooter/_peas_shooter.dm @@ -0,0 +1,7 @@ +/datum/modpack/example + /// A string name for the modpack. Used for looking up other modpacks in init. + name = "Горохострел" + /// A string desc for the modpack. Can be used for modpack verb list as description. + desc = "Добавляет горохострела и растение для его получения, которое можно мутировать из сойи" + /// A string with authors of this modpack. + author = "Chorden" diff --git a/modular_ss220/peas_shooter/_peas_shooter.dme b/modular_ss220/peas_shooter/_peas_shooter.dme new file mode 100644 index 000000000000..ce1b5b4ee926 --- /dev/null +++ b/modular_ss220/peas_shooter/_peas_shooter.dme @@ -0,0 +1,12 @@ +// BEGIN_INTERNALS +// END_INTERNALS +// BEGIN_FILE_DIR +#define FILE_DIR . +// END_FILE_DIR +// BEGIN_PREFERENCES +// END_PREFERENCES +// BEGIN_INCLUDE +#include "_peas_shooter.dm" +#include "code\item\peas_shooter.dm" +#include "code\plant\peas_shooter_plant.dm" +// END_INCLUDE diff --git a/modular_ss220/peas_shooter/code/item/peas_shooter.dm b/modular_ss220/peas_shooter/code/item/peas_shooter.dm new file mode 100644 index 000000000000..c8dd5e7b8e6a --- /dev/null +++ b/modular_ss220/peas_shooter/code/item/peas_shooter.dm @@ -0,0 +1,51 @@ +/obj/item/gun/projectile/revolver/peas_shooter + name = "Peas shooter" + desc = "A living pea! Can shoot peas, does minor stamina damage and forces brainrotting!" + icon = 'modular_ss220/peas_shooter/icons/items/peas_shooter.dmi' + icon_state = "peas_shooter" + item_state = "peas_shooter" + lefthand_file = 'modular_ss220/peas_shooter/icons/inhands/peasshooter_lefthand.dmi' + righthand_file = 'modular_ss220/peas_shooter/icons/inhands/peasshooter_righthand.dmi' + w_class = WEIGHT_CLASS_NORMAL + mag_type = /obj/item/ammo_box/magazine/peas_shooter + +/obj/item/ammo_box/magazine/peas_shooter + name = "peacock shooter magazine" + desc = "peacocker's mags for cockers" + ammo_type = /obj/item/ammo_casing/peas_shooter + max_ammo = 6 + +/obj/item/ammo_casing/peas_shooter + name = "pea bullet" + desc = "A bullet from pea, can't do any coherent damage and forces some brainrotting" + projectile_type = /obj/item/projectile/bullet/midbullet_r/peas_shooter + icon_state = "peashooter_bullet" + +/obj/item/projectile/bullet/midbullet_r/peas_shooter + icon = 'modular_ss220/peas_shooter/icons/items/peas_shooter.dmi' + item_state = "peashooter_bullet" + icon_state = "peashooter_bullet" + stamina = 5 + damage_type = STAMINA + +/obj/item/projectile/bullet/midbullet_r/peas_shooter/on_hit(mob/H) + . = ..() + if(prob(30)) + var/peas_talk = pick("Только не туда", "пацаны, я горошину ловлю", "хлоп-хлоп", "Это не суп", "МАГИСТРААААТ", "Я тучка-тучка", "Только не мартышки!") + H.say(peas_talk) + if(prob(30)) + H.emote("scream") + +/datum/chemical_reaction/peas_bullet + name = "Peas bullet creation" + id = "pea_bullet_create" + result = null + required_reagents = list("soybeanoil" = 5, "ammonia" = 5, "aluminum" = 5) + result_amount = 3 + +/datum/chemical_reaction/peas_bullet/on_reaction(datum/reagents/holder, created_volume) + . = ..() + var/loc = get_turf(holder.my_atom) + for(var/i in 1 to created_volume) + new /obj/item/ammo_casing/peas_shooter(loc) + diff --git a/modular_ss220/peas_shooter/code/plant/peas_shooter_plant.dm b/modular_ss220/peas_shooter/code/plant/peas_shooter_plant.dm new file mode 100644 index 000000000000..c8cb3360c573 --- /dev/null +++ b/modular_ss220/peas_shooter/code/plant/peas_shooter_plant.dm @@ -0,0 +1,20 @@ +/obj/item/seeds/soya/peas_shooter + name = "pack of peas shooter seeds" + desc = "These seeds grow into peas shooter" + icon = 'modular_ss220/peas_shooter/icons/seeds/seed_soybean.dmi' + icon_state = "seed-soybean" + species = "peas shooter" + plantname = "Peas Shooter Plants" + icon_harvest = "soybean-harvest" + product = /obj/item/gun/projectile/revolver/peas_shooter + rarity = 20 + reagents_add = list("plantmatter" = 0.2, "vitamin" = 0.4) + mutatelist = list() + potency = 20 + yield = 1 + production = 10 + genes = list() + +/obj/item/seeds/soya + mutatelist = list(/obj/item/seeds/soya/peas_shooter) + diff --git a/modular_ss220/peas_shooter/icons/inhands/peasshooter_lefthand.dmi b/modular_ss220/peas_shooter/icons/inhands/peasshooter_lefthand.dmi new file mode 100644 index 0000000000000000000000000000000000000000..976b12718aa7d9ee3aa53be99bfc31f705ea6ed0 GIT binary patch literal 444 zcmV;t0YmfFDZ*Bkp zc$`yKaB_9`^iy#0_2eo`Eh^5;&r`5fFwryM;w;ZhDainGjE%TBGg33tGfE(w;*!LY zR3KBSAT_bLI3qv5B(*3$CpE1kBQY;UiHkEOv#1zk1{Y^qQDSZ?h;7KFtl;YB0=5MJ zPfZ|Tu^e>+0002fNklvGtVP0i3eD3lBJH*qqY9E0`joG(Km^<-ovKA*cR{{m;&^%|3EmGFtix z+>U7JudruEg3{jvGV}yWKMAZ0L!k5%!AGVArN1I&KEIfLI%Ht-Tb9C1J<5*gKUH}# mwHfe!`LqMdj?k=$|HT7(%Meu{@ln|T0000fFDZ*Bkp zc$`yKaB_9`^iy#0_2eo`Eh^5;&r`5fFwryM;w;ZhDainGjE%TBGg33tGfE(w;*!LY zR3KBSAT_bLI3qv5B(*5M2qd48n3tl&#hH>>R17kNi!-e#F*g;&Hsn%PaP@NmTLS=h zvLMrO8zfi&007uYL_t(YiS1NN62c%1O{fO|s(XG1kXHAKy@2EW?;>rf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