[MOD 0.7.1] Medic-mod V0.5

Topics and discussion about specific mods
User avatar
Math3vv
Long Handed Inserter
Long Handed Inserter
Posts: 99
Joined: Sun Oct 06, 2013 10:47 am
Contact:

[MOD 0.7.1] Medic-mod V0.5

Post by Math3vv »

Image
THE MEDIC MOD V0.5

The medic mod adds herbs and other medical supplies to keep you alive on this stange plannet !

Read the change log to see what got changed.

Code: Select all

CHANGELOG: current version 0.5.0
----------------------------------------------------------------------------
Credit to:
FreeER - for helping on making the mod 0.7.1 compatible
The devs - for making this game easy to mod

------------------------UPDATES---------------------------------------------
0.5.0
-added technology "toxic-chemicals"
-added technology "toxic-chemicals-2"
-added technology "toxic-chemicals-3"
0.4.0
-added technology "medical-knowledge"
-added "water bottle", can be crafted with 2x herb + 1x fish (for now)
-minor changes
0.3.0
-made it 0.7.1 compatible
-changed the crafting recipe to : 1x fish + 5x wood
-changed the healing value to +30hp
-changed the cooldown from 30 to 25
0.2.0
-changed the herb to give 2x the health that fish does
0.1.0
-added "herbs", can be crafted with 10 wood
Download :
v0.5.0 (0.7.1)
https://www.dropbox.com/s/yhfu0pg3r5ye7 ... d0.5.0.zip
V0.4.0 (0.7.1)
https://www.dropbox.com/s/7mf1du6cdnjxc ... d0.4.0.zip
V0.3.0 (0.7.1)
https://www.dropbox.com/s/a9jdsg3b73fv3 ... _0_7_1.zip
V0.2.0 (0.6.4)
https://www.dropbox.com/s/y311oxg3l9jo3 ... _0_6_x.zip

any feedback will be highly apreciated :)
Last edited by Math3vv on Thu Oct 31, 2013 12:50 pm, edited 11 times in total.
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: [MOD 0.6.X] Medic-mod

Post by FreeER »

first this makes it compatable with 7.x, note this is the item code (simply replace what you have with this).

Code: Select all

{
    type = "capsule",
    name = "dirty-herb",
    icon = "__medic-mod_0_6_x__/graphics/icon/dirty herb.png",
    flags = {"goes-to-quickbar"},
    group = "production",
    order = "x",
    stack_size = 64,
    capsule_action =
    {
      type = "use-on-self",
      attack_parameters =
      {
        ammo_category = "capsule",
        cooldown = 30,
        range = 0,
        ammo_type =
        {
          category = "capsule",
          target_type = "position",
          action =
          {
            type = "direct",
            action_delivery =
            {
              type = "instant",
              target_effects = 
              {
                type = "damage",
                damage = {type = "physical", amount = -40}
              }
            }
          }
        }
      }
    },
  }
feedback:
first, the recipe category is unneeded (if you don't believe me just comment it out in the data.lua).
Second, I think the healing should be decreased down to about 25 rather than 40 (it's a dirty herb, not a crushed and processed and dryed medicine tablet).
Third, I would think that this fits better in the combat group rather than production, but that's just my opinion...
Fourth, I would change the name from "medic-mod_0_6_x" to just "medic-mod" (not need to change the name/folder for every release that way)
Fifth, if you do a check for the treefarm mod and see that it is there I would make the cost of these herbs much much higher.
Also, one last thing, I think it would be best if this got generated like trees (so they can be picked up, and you could have a 'garden' or something that grows them), but I'm not really sure how the autoplace works (though you could just copy the one for trees and try to tweak it so the herbs are (far) less common...)

Anyways, that's my feedback for you xD hope you find it helpful
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
User avatar
Math3vv
Long Handed Inserter
Long Handed Inserter
Posts: 99
Joined: Sun Oct 06, 2013 10:47 am
Contact:

Re: [MOD 0.6.X] Medic-mod

Post by Math3vv »

@FreeER
working on all the things you sayd :P
tnx for the feedback

edit:
i tryed the code somehow its not working. still testing other codes / files though.
edit2:
got it working for 0.7.1 (and i fixed alot of other things)
Last edited by Math3vv on Sun Oct 13, 2013 2:09 pm, edited 1 time in total.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: [MOD 0.6.X] Medic-mod

Post by ficolas »

Does use_on_self trigger an event? :)
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: [MOD 0.6.X] Medic-mod

Post by FreeER »

ficolas wrote:Does use_on_self trigger an event? :)
If it does it is not listed in data/core/lualib/defines.lua or the wiki page
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
Gammro
Filter Inserter
Filter Inserter
Posts: 361
Joined: Wed Oct 09, 2013 1:45 pm
Contact:

Re: [MOD 0.7.1] Medic-mod V0.5

Post by Gammro »

What are the "toxic-chemicals" techs for?
Ignore this
User avatar
Math3vv
Long Handed Inserter
Long Handed Inserter
Posts: 99
Joined: Sun Oct 06, 2013 10:47 am
Contact:

Re: [MOD 0.7.1] Medic-mod V0.5

Post by Math3vv »

Gammro wrote:What are the "toxic-chemicals" techs for?
they upgrade the flametrower and the bio-capsules so that they do more damage.
Post Reply

Return to “Mods”