Author Topic: New books  (Read 3420 times)

Offline Leonon

  • Zombie Food
  • *
  • Posts: 10
    • View Profile
New books
« on: January 05, 2013, 10:25:40 PM »
I'm not sure how to make a mod that adds these without modifying the original files which I'm pretty sure would break compatibility pretty fast. I don't C++ very well so I probably screwed something up. If anyone else wants to add some books here's the format they're in.
Code: [Select]
BOOK("{NAME}",{RARITY},{PRICE},{COLOR},PAPER,MNULL,{VOLUME},{WEIGHT},{DAMAGE},{TO HIT BONUS},{SKILL LEARNED},{MAX SKILL LEVEL},{MIN SKILL LEVEL},{FUN GAINED},{INT REQUIRED},{TIME TAKEN TO READ},"\{BOOK DESCRIPTION}");

//itypedef.cpp line 3189
BOOK("Starting A Fire With Two Sticks",20,200,c_green,PAPER,MNULL,3,1,-3,0,sk_survival,3,0,0,4,18,"\A guide detailing the basics of woodsmanship and outdoor survival.");

BOOK("Welding Without Burning Your Face Off",12,495,c_blue,PAPER,MNULL,6,3,4,1,sk_mechanics,6,3,-1,6,30,"\A welding textbook covering basic safety and subjects such as \"Grinding off rust\" and \"Making cursive E\'s\".");


//itype.h line 164
itm_manual_survival,itm_textbook_mechanics


//mapitemsdef.cpp
add itm_manual_survival to
mi_bedroom,mi_camping,mi_allsporting,mi_manuals,mi_mil_surplus,mi_shelter,

add itm_textbook_mechanics to
mi_mischw,mi_textbooks,

Offline The Darkling Wolf

  • Administrator
  • Survivor
  • *****
  • Posts: I am a geek!!
  • I did some stuff, once.
    • View Profile
Re: New books
« Reply #1 on: January 05, 2013, 11:06:39 PM »
Pretty nifty, added these in to the main branch. (Made the names a bit shorter)

Offline Leonon

  • Zombie Food
  • *
  • Posts: 10
    • View Profile
Re: New books
« Reply #2 on: January 06, 2013, 07:19:03 PM »
I'm wondering if we should have a mechanics skill book that goes to 13 or 14? 13 skill is the minimum for installing 2 engines and 14 allows for 2 6L engines and I'm not sure how easy they should be to install.
« Last Edit: January 06, 2013, 07:23:04 PM by Leonon »

Offline AssassinT90

  • Zombie Food
  • *
  • Posts: 27
    • View Profile
Re: New books
« Reply #3 on: January 06, 2013, 07:26:24 PM »
I'm wondering if we should have a mechanics skill book that goes to 13 or 14? 13 skill is the minimum for installing 2 engines and 14 allows for 2 6L engines and I'm not sure how easy they should be to install.
Nope. So they want two 6L engines? Well, work for it.

Offline Kevin Granade

  • Administrator
  • Survivor
  • *****
  • Posts: 5588
  • I code dead people.
    • View Profile
Re: New books
« Reply #4 on: January 06, 2013, 07:39:09 PM »
...I'm not sure how easy they should be to install.

Installing two arbitrary engines in a vehicle and actually getting any kind of power output from both of them is EXTREMELY difficult, and furthermore, I doubt there would be any commonly-distributed books that cover how to do so, so you'd have to accumulate enough general knowledge to work out all the problems yourself.  Ideally if you could acquire two matched engines* it would be much easier, but that's precisely the kind of thing that is difficult to model in the game.

*By matched I don't mean two 2L engines, I mean same make, model, year, etc.
Its like a fun family cookout, except your family is burning in flames while trying to eat you. -secretfire
I'm more excited than a survivor on meth and toast'ems. -Nighthawk
The the giant wasp is slammed through the zombie brute!

gtaguy

  • Guest
Re: New books
« Reply #5 on: January 06, 2013, 08:04:33 PM »
I don't think you would be able to get two engines that closely aligned to each other so that they output the same rpms all the time.

But this is a roguelike fun Finding new ways to die>realism