Skip to content

Commit

Permalink
Добавление горохострела, способов его получения.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chorden523 committed Mar 7, 2024
1 parent d8935d0 commit cebab39
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 0 deletions.
1 change: 1 addition & 0 deletions modular_ss220/modular_ss220.dme
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 7 additions & 0 deletions modular_ss220/peas_shooter/_peas_shooter.dm
Original file line number Diff line number Diff line change
@@ -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"
12 changes: 12 additions & 0 deletions modular_ss220/peas_shooter/_peas_shooter.dme
Original file line number Diff line number Diff line change
@@ -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
51 changes: 51 additions & 0 deletions modular_ss220/peas_shooter/code/item/peas_shooter.dm
Original file line number Diff line number Diff line change
@@ -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)

20 changes: 20 additions & 0 deletions modular_ss220/peas_shooter/code/plant/peas_shooter_plant.dm
Original file line number Diff line number Diff line change
@@ -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)

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit cebab39

Please sign in to comment.