Code: Select all
{
type = "capsule",
name = "Medkit",
icon = "Starfoth's_Simple_Medkit_Mod_0.13.0/graphics/ugly_medkit.png",
flags = { "goes-to-quickbar" },
subgroup = "ammo",
capsule_action =
{
type = "use-on-self",
attack_parameters =
{
type = "projectile",
ammo_category = "capsule",
cooldown = 15,
range = 0,
ammo_type =
{
category = "capsule",
target_type = "position",
action =
{
type = "direct",
action_delivery =
{
type = "instant",
target_effects =
{
type = "damage",
damage = { type = "physical", amount = -200 },
}
}
}
}
}
}
order = "g[medicine]-a[basicmed]",
stack_size = 20,
}