Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -crB Catacompare/crafting.cpp BetterHomesAndGardens/crafting.cpp
- *** Catacompare/crafting.cpp 2011-08-21 15:34:02.000000000 -0400
- --- BetterHomesAndGardens/crafting.cpp 2011-08-21 18:18:44.000000000 -0400
- ***************
- *** 562,567 ****
- --- 561,574 ----
- COMP(itm_power_supply, 1, NULL);
- COMP(itm_battery, 500, itm_plut_cell, 1, NULL);
- + //GlyphGryph's Recipes
- + RECIPE(itm_torch, CC_MISC, sk_null, sk_null, 0, 600);
- + COMP(itm_rag, 2, NULL);
- + COMP(itm_whiskey, 1, itm_vodka, 1, itm_rum, 1, itm_tequila, 1,
- + itm_gasoline, 1, NULL);
- + COMP(itm_2x4, 1, itm_bat, 1, itm_stick, 1, itm_mop, 1, NULL);
- + //End GlyphGryph's Recipes
- +
- }
- void game::craft()
- diff -crB Catacompare/game.cpp BetterHomesAndGardens/game.cpp
- *** Catacompare/game.cpp 2011-08-21 15:34:02.000000000 -0400
- --- BetterHomesAndGardens/game.cpp 2011-08-21 17:33:58.000000000 -0400
- ***************
- *** 1983,1990 ****
- --- 1983,1998 ----
- if (ret > 10)
- ret = 10;
- }
- + int torch = u.active_item_charges(itm_lit_torch);
- + if (ret < 10 && torch > 0){
- + ret = torch/10-rand()%3;
- + if (ret > 10){
- + ret = 10;
- + }
- + }
- if (ret < 8 && u.has_active_bionic(bio_flashlight))
- ret = 8;
- + if (ret < 1) ret = 1;
- return ret;
- }
- diff -crB Catacompare/.git/logs/HEAD BetterHomesAndGardens/.git/logs/HEAD
- *** Catacompare/.git/logs/HEAD 2011-08-21 15:34:02.000000000 -0400
- --- BetterHomesAndGardens/.git/logs/HEAD 2011-08-21 15:39:59.000000000 -0400
- ***************
- *** 1 ****
- ! 0000000000000000000000000000000000000000 61b9e024ba13e078f87489e5c369aa5688b20f6f Kevin McKayven <glyphgryph@gmail.com> 1313955242 -0400 clone: from git://github.com/Whales/Cataclysm
- --- 1 ----
- ! 0000000000000000000000000000000000000000 61b9e024ba13e078f87489e5c369aa5688b20f6f Kevin McKayven <glyphgryph@gmail.com> 1313955599 -0400 clone: from git://github.com/Whales/Cataclysm
- diff -crB Catacompare/.git/logs/refs/heads/master BetterHomesAndGardens/.git/logs/refs/heads/master
- *** Catacompare/.git/logs/refs/heads/master 2011-08-21 15:34:02.000000000 -0400
- --- BetterHomesAndGardens/.git/logs/refs/heads/master 2011-08-21 15:39:59.000000000 -0400
- ***************
- *** 1 ****
- ! 0000000000000000000000000000000000000000 61b9e024ba13e078f87489e5c369aa5688b20f6f Kevin McKayven <glyphgryph@gmail.com> 1313955242 -0400 clone: from git://github.com/Whales/Cataclysm
- --- 1 ----
- ! 0000000000000000000000000000000000000000 61b9e024ba13e078f87489e5c369aa5688b20f6f Kevin McKayven <glyphgryph@gmail.com> 1313955599 -0400 clone: from git://github.com/Whales/Cataclysm
- diff -crB Catacompare/.git/logs/refs/remotes/origin/HEAD BetterHomesAndGardens/.git/logs/refs/remotes/origin/HEAD
- *** Catacompare/.git/logs/refs/remotes/origin/HEAD 2011-08-21 15:34:02.000000000 -0400
- --- BetterHomesAndGardens/.git/logs/refs/remotes/origin/HEAD 2011-08-21 15:39:59.000000000 -0400
- ***************
- *** 1 ****
- ! 0000000000000000000000000000000000000000 61b9e024ba13e078f87489e5c369aa5688b20f6f Kevin McKayven <glyphgryph@gmail.com> 1313955242 -0400 clone: from git://github.com/Whales/Cataclysm
- --- 1 ----
- ! 0000000000000000000000000000000000000000 61b9e024ba13e078f87489e5c369aa5688b20f6f Kevin McKayven <glyphgryph@gmail.com> 1313955599 -0400 clone: from git://github.com/Whales/Cataclysm
- diff -crB Catacompare/itypedef.cpp BetterHomesAndGardens/itypedef.cpp
- *** Catacompare/itypedef.cpp 2011-08-21 15:34:02.000000000 -0400
- --- BetterHomesAndGardens/itypedef.cpp 2011-08-22 01:23:40.000000000 -0400
- ***************
- *** 651,657 ****
- for throwing at enemies.");
- MELEE("heavy stick", 95, 0, '/', c_brown, WOOD, MNULL,
- ! 6, 10, 12, 0, 3, 0, "\
- A sturdy, heavy stick. Makes a decent melee weapon, and can be cut into two\n\
- by fours for crafting.");
- --- 651,657 ----
- for throwing at enemies.");
- MELEE("heavy stick", 95, 0, '/', c_brown, WOOD, MNULL,
- ! 6, 10, 12, 0, 1, 0, "\
- A sturdy, heavy stick. Makes a decent melee weapon, and can be cut into two\n\
- by fours for crafting.");
- ***************
- *** 664,670 ****
- An unwieldy mop. Essentially useless.");
- MELEE("screwdriver", 40, 65, ';', c_ltcyan, IRON, PLASTIC,
- ! 1, 1, 2, 8, 1, mfb(IF_SPEAR), "\
- A Philips-head screwdriver, important for almost all electronics crafting and\n\
- most mechanics crafting.");
- --- 664,670 ----
- An unwieldy mop. Essentially useless.");
- MELEE("screwdriver", 40, 65, ';', c_ltcyan, IRON, PLASTIC,
- ! 1, 1, 2, 8, -4, mfb(IF_SPEAR), "\
- A Philips-head screwdriver, important for almost all electronics crafting and\n\
- most mechanics crafting.");
- ***************
- *** 802,810 ****
- MELEE("gold bar", 10,3000,'/', c_yellow, STEEL, MNULL,
- 2, 60, 14, 0, -1, 0, "\
- ! A large bar of gold. Before the apocalypse, this wouldn't been worth a small\n\
- fortune; now its value is greatly diminished.");
- // ARMOR
- #define ARMOR(name,rarity,price,color,mat1,mat2,volume,wgt,dam,to_hit,\
- encumber,dmg_resist,cut_resist,env,warmth,storage,covers,des)\
- --- 802,847 ----
- MELEE("gold bar", 10,3000,'/', c_yellow, STEEL, MNULL,
- 2, 60, 14, 0, -1, 0, "\
- ! A large bar of gold. Before the apocalypse, this would have been worth a small\n\
- fortune; now its value is greatly diminished.");
- + //GlyphGryph's Additions
- + MELEE("chair", 93, 15,'h', c_brown, WOOD, MNULL,
- + 90, 15, 20, 4, -3, mfb(IF_SPEAR), "\
- + A fairly sturdy four-legged wooden chair. Slow and unwiedly,\n\
- + but decent damage.");
- +
- + MELEE("burnt torch", 0, 10,';', c_brown, WOOD, MNULL,
- + 5, 5, 12, 0, 2, 0, "\
- + This is a burn-out torch. Useful as a club, maybe, but not much else.");
- +
- + MELEE("weight plate", 110, 15,'o', c_green, IRON, MNULL,
- + 16, 40, 44, 0, -5, 0, "\
- + This plate is big, heavy, and unwieldy. You could probably do a lot of damage\n\
- + if you hit something with it though.");
- +
- + MELEE("barbell", 80, 10,'/', c_green, STEEL, MNULL,
- + 16, 25, 32, 0, 3, 0, "\
- + A metal bar. It is heavy and quite sturdy. Built in grips to prevent slippage.");
- +
- + MELEE("dumbell", 90, 10,'H', c_green, STEEL, MNULL,
- + 5, 16, 22, 0, -2, 0, "\
- + A relatively hefty hand weight.");
- +
- + MELEE("cymbal", 50, 9,'o', c_yellow, STEEL, MNULL,
- + 10, 6, 6, 2, -2, mfb(IF_LOUD), "\
- + A thin plate of metal intended for use with a drumset. Makes a pleasant sound when run over a\n\
- + zombies head. Hard to keep a good grip on it, though.");
- +
- + MELEE("drumsticks", 50, 5,'/', c_yellow, WOOD, MNULL,
- + 2, 1, 6, 2, -2, 0, "\
- + A pair of small wooden stick. These aren't really built to be weapons, but you could probably do\n\
- + some damage by whacking someone in the head or shoving it an eye, though.");
- +
- + MELEE("guitar", 8, 10,'H', c_green, WOOD, MNULL,
- + 18, 6, 26, 0, 1, mfb(IF_LOUD), "\
- + A six-stringed musical instrument.");
- +
- // ARMOR
- #define ARMOR(name,rarity,price,color,mat1,mat2,volume,wgt,dam,to_hit,\
- encumber,dmg_resist,cut_resist,env,warmth,storage,covers,des)\
- ***************
- *** 2302,2307 ****
- --- 2339,2362 ----
- color,mat1,mat2,volume,wgt,melee_dam,melee_cut,to_hit,flags,max_charge,\
- def_charge,charge_per_use,charge_per_sec,fuel,revert,func))
- + //GlyphGryphs Additions
- + // NAME RAR PRC SYM COLOR MAT1 MAT
- + TOOL("sewing machine", 5,300, 'm', c_red, PLASTIC,IRON,
- + // VOL WGT DAM CUT HIT MAX DEF USE SEC FUEL REVERT FUNCTION
- + 36, 60, 4, 0, -4, 500,200, 10, 0, AT_BATT, itm_null, &iuse::sew, 0, "\
- + This sewing machine is large, heavy, and battery powered. It comes with all the trimmings, and has enough extra thread and needles to last as long as you can keep it powered.");
- +
- + TOOL("torch", 0, 30,';', c_blue, WOOD, COTTON,
- + 5, 5, 9, 0, 2, 100,100, 0, 0, AT_NULL, itm_null, &iuse::light_torch,0,"\
- + This is an unlit torch.");
- +
- + TOOL("lit torch", 0, 30,';', c_blue, WOOD, COTTON,
- + 5, 5, 9, 0, 2, 100,100, 0, 12, AT_NULL, itm_torch, &iuse::douse_torch,mfb(IF_FLAMING),
- + "This torch burns steadily, giving off a good amount of light.");
- +
- + //End GlyphGryph's Additions
- +
- +
- // NAME RAR PRC SYM COLOR MAT1 MAT
- TOOL("lighter", 60, 35,',', c_blue, PLASTIC,IRON,
- // VOL WGT DAM CUT HIT MAX DEF USE SEC FUEL REVERT FUNCTION
- diff -crB Catacompare/itype.h BetterHomesAndGardens/itype.h
- *** Catacompare/itype.h 2011-08-21 15:34:02.000000000 -0400
- --- BetterHomesAndGardens/itype.h 2011-08-21 23:24:19.000000000 -0400
- ***************
- *** 55,60 ****
- --- 55,62 ----
- itm_knife_combat, itm_2x4, itm_muffler, itm_pipe, itm_bat, itm_machete,
- itm_katana, itm_spear_wood, itm_spear_knife, itm_baton, itm_bee_sting,
- itm_wasp_sting, itm_chitin_piece, itm_canister_empty, itm_gold,
- + //GlyphGryph's added stuff
- + itm_chair, itm_burnt_torch, itm_weight_plate, itm_barbell, itm_dumbell, itm_cymbal, itm_drumsticks, itm_guitar,
- // Footwear
- itm_sneakers, itm_boots, itm_boots_steel, itm_boots_winter, itm_mocassins,
- itm_flip_flops, itm_dress_shoes, itm_heels,
- ***************
- *** 121,127 ****
- itm_bag_plastic, itm_bottle_plastic, itm_bottle_glass,
- itm_can_drink, itm_can_food, itm_box_small,
- // Tools
- ! itm_lighter, itm_sewing_kit, itm_scissors, itm_hammer, itm_extinguisher,
- itm_flashlight, itm_flashlight_on, itm_hotplate, itm_soldering_iron,
- itm_water_purifier, itm_two_way_radio, itm_radio, itm_radio_on, itm_crowbar,
- itm_hoe, itm_shovel, itm_chainsaw_off, itm_chainsaw_on, itm_jackhammer,
- --- 123,132 ----
- itm_bag_plastic, itm_bottle_plastic, itm_bottle_glass,
- itm_can_drink, itm_can_food, itm_box_small,
- // Tools
- ! //GlyphGryph's Addition
- ! itm_sew_mach, itm_torch, itm_lit_torch,
- ! //End GlyphGryph's Addition
- ! itm_lighter, itm_sewing_kit, itm_scissors, itm_hammer, itm_extinguisher,
- itm_flashlight, itm_flashlight_on, itm_hotplate, itm_soldering_iron,
- itm_water_purifier, itm_two_way_radio, itm_radio, itm_radio_on, itm_crowbar,
- itm_hoe, itm_shovel, itm_chainsaw_off, itm_chainsaw_on, itm_jackhammer,
- ***************
- *** 179,184 ****
- --- 184,192 ----
- IF_MESSY, // Splatters blood, etc.
- IF_RELOAD_ONE, // Reload cartridge by cartridge (e.g. most shotguns)
- IF_STR_RELOAD, // Reloading time is reduced by Strength * 20
- + IF_LOUD, // This object makes a loud noise when striking things (not yet implemented)
- + IF_BALANCED, // This object is well balanced for fighting, allowing for faster strikes than its size and weight would imply.
- + IF_FLAMING, // This item is on fire and will light things it hits on fire as well.
- IF_AMMO_FLAME, // Sets fire to terrain and monsters
- IF_AMMO_INCENDIARY, // Sparks explosive terrain
- diff -crB Catacompare/iuse.cpp BetterHomesAndGardens/iuse.cpp
- *** Catacompare/iuse.cpp 2011-08-21 15:34:02.000000000 -0400
- --- BetterHomesAndGardens/iuse.cpp 2011-08-21 15:45:57.000000000 -0400
- ***************
- *** 924,929 ****
- --- 924,953 ----
- }
- }
- + void iuse::light_torch(game *g, player *p, item *it, bool t)
- + {
- + if (!p->has_amount(itm_lighter, 1)) {
- + g->add_msg("You need a lighter!");
- + return;
- + }
- + p->use_up(itm_lighter, 1);
- + g->add_msg("You light the torch.");
- + p->moves -= 150;
- + it->make(g->itypes[itm_lit_torch]);
- + it->active = true;
- + }
- +
- + void iuse::douse_torch(game *g, player *p, item *it, bool t)
- + {
- + if (t) {
- + } else {
- + g->add_msg("Your torch sputters and goes out.");
- + it->make(g->itypes[itm_torch]);
- + it->active = false;
- + }
- + }
- +
- +
- void iuse::water_purifier(game *g, player *p, item *it, bool t)
- {
- char ch = g->inv("Purify what?");
- diff -crB Catacompare/iuse.h BetterHomesAndGardens/iuse.h
- *** Catacompare/iuse.h 2011-08-21 15:34:02.000000000 -0400
- --- BetterHomesAndGardens/iuse.h 2011-08-21 15:46:56.000000000 -0400
- ***************
- *** 46,51 ****
- --- 46,55 ----
- void hammer (game *g, player *p, item *it, bool t);
- void light_off (game *g, player *p, item *it, bool t);
- void light_on (game *g, player *p, item *it, bool t);
- + //GlyphGryph's Additions
- + void light_torch (game *g, player *p, item *it, bool t);
- + void douse_torch (game *g, player *p, item *it, bool t);
- + //End GlyphGryph's Additions
- void water_purifier (game *g, player *p, item *it, bool t);
- void two_way_radio (game *g, player *p, item *it, bool t);
- void radio_off (game *g, player *p, item *it, bool t);
- diff -crB Catacompare/mapitemsdef.cpp BetterHomesAndGardens/mapitemsdef.cpp
- *** Catacompare/mapitemsdef.cpp 2011-08-21 15:34:02.000000000 -0400
- --- BetterHomesAndGardens/mapitemsdef.cpp 2011-08-22 00:03:24.000000000 -0400
- ***************
- *** 37,49 ****
- itm_gloves_winter, itm_gloves_leather, itm_gloves_fingerless,
- itm_bandana, itm_scarf, itm_hat_cotton, itm_hat_knit, itm_hat_fur,
- itm_helmet_bike, itm_helmet_motor, itm_mag_tv, itm_mag_news,
- ! itm_lighter, itm_extinguisher, itm_mp3, NULL);
- setvector(
- mapitems[mi_kitchen],
- itm_pot, itm_pan, itm_knife_butter, itm_knife_steak, itm_knife_butcher,
- itm_cookbook, itm_rag, itm_hotplate, itm_flashlight, itm_extinguisher,
- ! itm_whiskey, itm_bleach, itm_ammonia, itm_flour, itm_sugar, itm_salt,
- NULL);
- setvector(
- --- 37,49 ----
- itm_gloves_winter, itm_gloves_leather, itm_gloves_fingerless,
- itm_bandana, itm_scarf, itm_hat_cotton, itm_hat_knit, itm_hat_fur,
- itm_helmet_bike, itm_helmet_motor, itm_mag_tv, itm_mag_news,
- ! itm_lighter, itm_extinguisher, itm_mp3, itm_chair, itm_sew_mach, NULL);
- setvector(
- mapitems[mi_kitchen],
- itm_pot, itm_pan, itm_knife_butter, itm_knife_steak, itm_knife_butcher,
- itm_cookbook, itm_rag, itm_hotplate, itm_flashlight, itm_extinguisher,
- ! itm_whiskey, itm_bleach, itm_ammonia, itm_flour, itm_sugar, itm_salt, itm_chair,
- NULL);
- setvector(
- ***************
- *** 60,66 ****
- itm_hacksaw, itm_xacto, itm_gloves_leather, itm_mask_dust,
- itm_glasses_safety, itm_battery, itm_nail, itm_nailgun,
- itm_manual_mechanics, itm_hammer, itm_flashlight, itm_soldering_iron,
- ! itm_bubblewrap, NULL);
- setvector(
- mapitems[mi_bedroom],
- --- 60,66 ----
- itm_hacksaw, itm_xacto, itm_gloves_leather, itm_mask_dust,
- itm_glasses_safety, itm_battery, itm_nail, itm_nailgun,
- itm_manual_mechanics, itm_hammer, itm_flashlight, itm_soldering_iron,
- ! itm_bubblewrap, itm_sew_mach, NULL);
- setvector(
- mapitems[mi_bedroom],
- ***************
- *** 531,536 ****
- --- 531,545 ----
- mapitems[mi_stash_drugs],
- itm_pills_sleep, itm_oxycodone, itm_xanax, itm_adderall, itm_weed,
- itm_coke, itm_meth, itm_heroin, NULL);
- + // GlyphGryph's Additions
- + setvector(
- + mapitems[mi_weight_set],
- + itm_dumbell, itm_barbell, itm_weight_plate, NULL);
- +
- + setvector(
- + mapitems[mi_drum_kit],
- + itm_drumsticks, itm_cymbal, NULL);
- + // End GlyphGryph's Additions
- // This one kind of an inverted list; what a traveling salesman will NOT carry
- setvector(
- diff -crB Catacompare/mapitems.h BetterHomesAndGardens/mapitems.h
- *** Catacompare/mapitems.h 2011-08-21 15:34:02.000000000 -0400
- --- BetterHomesAndGardens/mapitems.h 2011-08-21 23:52:29.000000000 -0400
- ***************
- *** 34,40 ****
- mi_stash_wood, mi_stash_drugs,
- // Shopkeeps &c
- mi_trader_avoid,
- ! num_itloc
- };
- // This is used only for monsters; they get a list of items_locations, and
- --- 34,43 ----
- mi_stash_wood, mi_stash_drugs,
- // Shopkeeps &c
- mi_trader_avoid,
- ! num_itloc,
- ! // GlyphGryph's additions
- ! mi_weight_set,
- ! mi_drum_kit
- };
- // This is used only for monsters; they get a list of items_locations, and
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement