Compare commits

..

23 Commits

Author SHA1 Message Date
Kevin Granade 7c8d5009ac Release 0.7.1 2013-07-18 21:47:16 -05:00
Kevin Granade 210273f3ca Merge remote-tracking branch 'dda/master' into dda-master 2013-07-18 21:47:02 -05:00
GalenEvil 2bc5d630b5 Merge branch 'origin/master' 2013-07-18 21:35:02 -05:00
GalenEvil d9414565ff Merge remote-tracking branch 'origin/pr/2113' 2013-07-18 21:29:50 -05:00
Kevin Granade 5590d9beb9 Merge pull request #2098 from kevingranade/update-msvc-versioning
Update version for MSVC project builds.
2013-07-18 17:58:23 -07:00
Kevin Granade e62ca51fd6 Merge branch 'master' of github.com:CuriousRaven/Cataclysm-DDA into dda-master 2013-07-18 19:55:22 -05:00
GalenEvil 4d31482045 Merge branch 'origin/master' 2013-07-18 19:25:22 -05:00
GalenEvil f116c1bad6 Merge remote-tracking branch 'origin/pr/2105' 2013-07-18 19:19:34 -05:00
GalenEvil 93031408ff Merge remote-tracking branch 'origin/pr/2102' 2013-07-18 19:19:10 -05:00
Kevin Granade 76e3ca7292 Move check for ammo effect outside of time_to_fire() to avoid dereferencing (potentially null) currammo. 2013-07-18 19:09:34 -05:00
GalenEvil 220fec1701 Merge remote-tracking branches 'origin/pr/2104', 'origin/pr/2100' and 'origin/pr/2099' 2013-07-18 19:08:23 -05:00
Kevin Granade ab998b1734 Merge fix to gunmod attachment check. 2013-07-18 18:16:12 -05:00
somerandomlogin b052ca9871 Fix for weapon mods with no ammo types 2013-07-18 17:38:23 +04:00
GalenEvil 9396c17c02 Change in how Vehicle Examination window is displayed so it works in 12x12 View Screens
Added a logging ability for constant values to DebugLog.
2013-07-17 23:45:24 -05:00
Kevin Granade 734cfc40f9 Strip out references to a removed ammunition in spawn lists. 2013-07-17 22:40:02 -05:00
Kevin Granade 401dd4c319 Don't draw item glyphs on top of furniture glyphs. 2013-07-17 21:47:26 -05:00
Kevin Granade f830f19fe0 Merge some sleep fixes. 2013-07-17 20:51:01 -05:00
Kevin Granade 766a707722 Fix typo in spawn list. 2013-07-17 20:03:22 -05:00
Kevin Granade 03f59c5c4b Supress pickup from vehicle when doing autopickup. 2013-07-17 19:07:43 -05:00
Kevin Granade 336820e22e Remove coverage property from wristwatch to prevent ensumberance. 2013-07-17 18:56:58 -05:00
Kevin Granade eeede6a039 Update version for MSVC project builds. 2013-07-17 18:05:42 -05:00
Peter Lacey-Bordeaux 945fe528ff made coughing from smoke wake you up 2013-07-17 16:18:13 -04:00
somerandomlogin b2547996be Vehicle bed sleepiness fix. 2013-07-17 19:47:53 +04:00
13 changed files with 59 additions and 44 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ DEBUG = -g
#DEFINES += -DDEBUG_ENABLE_MAP_GEN
#DEFINES += -DDEBUG_ENABLE_GAME
VERSION = 0.7
VERSION = 0.7.1
TARGET = cataclysm
+13
View File
@@ -1,3 +1,16 @@
0.7.1 (bugfix point release)
Vehicle bed sleepiness fix.
Made coughing from smoke wake you up.
Update version for MSVC project builds.
Remove coverage property from wristwatch to prevent ensumberance.
Supress pickup from vehicle when doing autopickup.
Fix typo in spawn list.
Don't draw item glyphs on top of furniture glyphs.
Strip out references to a removed ammunition in spawn lists.
Change in how Vehicle Examination window is displayed so it works in 12x12 View Screens
Fix for weapon mods with no ammo types.
0.7
Highlights:
+4 -15
View File
@@ -519,7 +519,7 @@
["mag_throwing", 20],
["novel_firstaid", 10],
["mag_gaming", 20],
["Mag_swimming", 10],
["mag_swimming", 10],
["flyer", 10]
]
},
@@ -948,22 +948,19 @@
["45_acp", 7],
["45_jhp", 4],
["45_super", 5],
["raging_bull", 1],
["sw_500", 1],
["454_Casull", 1],
["500_Magnum", 1],
["57mm", 3],
["46mm", 2],
["762_m43", 6],
["762_m87", 7],
["762_fmj", 3],
["223", 8],
["556", 6],
["556fmj", 3],
["270", 8],
["3006", 4],
["3006fmj", 2],
["308", 7],
["762_51", 6],
["762_51fmj", 3]
["762_51", 6]
]
},
{ "id":"pistols",
@@ -2502,13 +2499,10 @@
["bolt_steel", 7],
["shot_00", 8],
["762_m87", 7],
["762_fmj", 3],
["556", 6],
["556fmj", 3],
["556_incendiary", 2],
["3006_incendiary", 1],
["762_51", 6],
["762_51fmj", 3],
["762_51_incendiary", 6],
["saiga_12", 3],
["hk_mp5", 12],
@@ -2733,10 +2727,8 @@
["45_acp", 7],
["45_jhp", 3],
["556", 6],
["556fmj", 3],
["556_incendiary", 2],
["762_51", 6],
["762_51fmj", 3],
["762_51_incendiary", 6],
["laser_pack", 2],
["40mm_concussive", 10],
@@ -2903,13 +2895,10 @@
["57mm", 3],
["46mm", 2],
["762_m87", 7],
["762_fmj", 3],
["556", 6],
["556fmj", 3],
["3006", 4],
["3006fmj", 3],
["762_51", 6],
["762_51fmj", 3],
["arrow_cf", 5],
["press", 5],
["puller", 5]
-1
View File
@@ -3582,7 +3582,6 @@
"type" : "ARMOR",
"id" : "wristwatch",
"name" : "wrist watch",
"covers" : ["ARMS"],
"volume" : 0,
"material_thickness" : 0,
"storage" : 0,
+5
View File
@@ -94,6 +94,11 @@ struct DebugLog
fout << t;
return *this;
}
template <class T>
DebugLog& operator<<(const T& t){
fout << t;
return *this;
}
private:
std::ofstream fout;
+4
View File
@@ -618,6 +618,10 @@ void dis_effect(game *g, player &p, disease &dis)
g->sound(p.posx, p.posy, 12, "a hacking cough.");
p.moves -= 80;
p.hurt(g, bp_torso, 0, 1 - (rng(0, 1) * rng(0, 1)));
if (p.has_disease("sleep")) {
p.rem_disease("sleep");
g->add_msg_if_player(&p,_("Your coughing wakes you up"));
}
}
break;
+1 -1
View File
@@ -8156,7 +8156,7 @@ void game::pickup(int posx, int posy, int min)
int veh_part = 0;
int k_part = 0;
vehicle *veh = m.veh_at (posx, posy, veh_part);
if (veh) {
if (min != -1 && veh) {
k_part = veh->part_with_feature(veh_part, vpf_kitchen);
veh_part = veh->part_with_feature(veh_part, vpf_cargo, false);
from_veh = veh && veh_part >= 0 &&
+1 -1
View File
@@ -1,7 +1,7 @@
#include "game.h"
#include "input.h"
#include "keypress.h"
#include "debug.h"
#include "input.h"
#include "mapbuffer.h"
#include "cursesdef.h"
#include "overmapbuffer.h"
+1 -1
View File
@@ -3247,7 +3247,7 @@ void map::drawsq(WINDOW* w, player &u, const int x, const int y, const bool inve
}
// If there's items here, draw those instead
if (show_items && !has_flag(container, x, y) && curr_items.size() > 0 && !drew_field) {
if (terlist[curr_ter].sym != '.')
if (sym != '.')
hi = true;
else {
tercol = curr_items[curr_items.size() - 1].color();
+4 -3
View File
@@ -6586,7 +6586,7 @@ void player::use(game *g, char let)
if (replace_item)
inv.add_item(copy);
return;
} else if ( mod->acceptible_ammo_types.count(guntype->ammo) == 0 ) {
} else if ( mod->acceptible_ammo_types.size() && mod->acceptible_ammo_types.count(guntype->ammo) == 0 ) {
g->add_msg("That %s cannot be used on a %s gun.", used->tname(g).c_str(),
ammo_name(guntype->ammo).c_str());
if (replace_item)
@@ -6930,11 +6930,12 @@ bool player::can_sleep(game *g)
const trap_id trap_at_pos = g->m.tr_at(posx, posy);
const ter_id ter_at_pos = g->m.ter(posx, posy);
const furn_id furn_at_pos = g->m.furn(posx, posy);
if ((veh && veh->part_with_feature (vpart, vpf_seat) >= 0) ||
if ((veh && veh->part_with_feature (vpart, vpf_bed) >= 0) ||
furn_at_pos == f_makeshift_bed || trap_at_pos == tr_cot ||
furn_at_pos == f_sofa)
sleepy += 4;
else if (trap_at_pos == tr_rollmat || furn_at_pos == f_armchair)
else if ((veh && veh->part_with_feature (vpart, vpf_seat) >= 0) ||
trap_at_pos == tr_rollmat || furn_at_pos == f_armchair)
sleepy += 3;
else if (furn_at_pos == f_bed)
sleepy += 5;
+3 -3
View File
@@ -91,7 +91,9 @@ void game::fire(player &p, int tarx, int tary, std::vector<point> &trajectory,
bool u_see_shooter = u_see(p.posx, p.posy);
// Use different amounts of time depending on the type of gun and our skill
p.moves -= time_to_fire(p, firing);
if (!effects->count("BOUNCE")) {
p.moves -= time_to_fire(p, firing);
}
// Decide how many shots to fire
int num_shots = 1;
if (burst)
@@ -857,8 +859,6 @@ void game::hit_monster_with_flags(monster &z, const std::set<std::string> &effec
int time_to_fire(player &p, it_gun* firing)
{
int time = 0;
if (p.weapon.curammo->ammo_effects.count("BOUNCE"))
return 0;
if (firing->skill_used == Skill::skill("pistol")) {
if (p.skillLevel("pistol") > 6)
time = 10;
+19 -17
View File
@@ -6,7 +6,7 @@
#include "output.h"
#include "crafting.h"
#include "options.h"
#include "debug.h"
veh_interact::veh_interact ()
{
@@ -44,33 +44,35 @@ void veh_interact::exec (game *gm, vehicle *v, int x, int y)
winy1 = winh1;
winy2 = winh1 + winh2 + 1;
const int iOffsetX = (TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0;
const int iOffsetY = (TERMY > FULL_SCREEN_HEIGHT) ? (TERMY-FULL_SCREEN_HEIGHT)/2 : 0;
// changed FALSE value to 1, to keep w_border from starting at a negative x,y
const int iOffsetX = (TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 1;
const int iOffsetY = (TERMY > FULL_SCREEN_HEIGHT) ? (TERMY-FULL_SCREEN_HEIGHT)/2 : 1;
page_size = winh23;
// h w y x
WINDOW *w_border= newwin(FULL_SCREEN_HEIGHT+2, FULL_SCREEN_WIDTH+2, -1 + iOffsetY, -1 + iOffsetX);
w_grid = newwin(FULL_SCREEN_HEIGHT, FULL_SCREEN_WIDTH, 0 + iOffsetY, 0 + iOffsetX);
w_mode = newwin(1, FULL_SCREEN_WIDTH, 0 + iOffsetY, 0 + iOffsetX);
w_msg = newwin(winh1 - 1, FULL_SCREEN_WIDTH, 1 + iOffsetY, 0 + iOffsetX);
w_disp = newwin(winh2, winw1, winy1 + 1 + iOffsetY, 0 + iOffsetX);
w_parts = newwin(winh2, winw2, winy1 + 1 + iOffsetY, winx1 + 1 + iOffsetX);
w_stats = newwin(winh3, winw12, winy2 + 1 + iOffsetY, 0 + iOffsetX);
WINDOW *w_border= newwin(FULL_SCREEN_HEIGHT, FULL_SCREEN_WIDTH, -1 + iOffsetY, -1 + iOffsetX);
w_grid = newwin(FULL_SCREEN_HEIGHT -2, FULL_SCREEN_WIDTH-2, iOffsetY, iOffsetX);
w_mode = newwin(1, FULL_SCREEN_WIDTH-2, iOffsetY, iOffsetX);
w_msg = newwin(winh1 - 1, FULL_SCREEN_WIDTH-2, 1 + iOffsetY, iOffsetX);
w_disp = newwin(winh2-1, winw1, winy1 + 1 + iOffsetY, iOffsetX);
w_parts = newwin(winh2-1, winw2, winy1 + 1 + iOffsetY, winx1 + 1 + iOffsetX);
w_stats = newwin(winh3-1, winw12, winy2 + iOffsetY, iOffsetX);
w_list = newwin(winh23, winw3, winy1 + 1 + iOffsetY, winx2 + 1 + iOffsetX);
wborder(w_border, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
mvwputch(w_border, 17, 0, c_ltgray, LINE_XXXO); // |-
mvwputch(w_border, 16, 0, c_ltgray, LINE_XXXO); // |-
mvwputch(w_border, 4, 0, c_ltgray, LINE_XXXO); // |-
mvwputch(w_border, 4, FULL_SCREEN_WIDTH+1, c_ltgray, LINE_XOXX); // -|
mvwputch(w_border, 26, 49, c_ltgray, LINE_XXOX);
mvwputch(w_border, 4, FULL_SCREEN_WIDTH-1, c_ltgray, LINE_XOXX); // -|
mvwputch(w_border, 24, 49, c_ltgray, LINE_XXOX);
wrefresh(w_border);
for (int i = 0; i < FULL_SCREEN_HEIGHT; i++)
{
mvwputch(w_grid, i, winx2, c_ltgray, i == winy1 || i == winy2? LINE_XOXX : LINE_XOXO);
mvwputch(w_grid, i, winx2, c_ltgray, i == winy1 || i == winy2-1? LINE_XOXX : LINE_XOXO);
if (i >= winy1 && i < winy2)
mvwputch(w_grid, i, winx1, c_ltgray, LINE_XOXO);
}
@@ -79,7 +81,7 @@ void veh_interact::exec (game *gm, vehicle *v, int x, int y)
mvwputch(w_grid, winy1, i, c_ltgray,
i == winx1? LINE_OXXX : (i == winx2? LINE_OXXX : LINE_OXOX));
if (i < winx2)
mvwputch(w_grid, winy2, i, c_ltgray, i == winx1? LINE_XXOX : LINE_OXOX);
mvwputch(w_grid, winy2-1, i, c_ltgray, i == winx1? LINE_XXOX : LINE_OXOX);
}
wrefresh(w_grid);
@@ -795,8 +797,8 @@ void veh_interact::display_mode (char mode)
}
mvwprintz(w_mode, 0, 49, c_ltgray, "rename");
mvwputch (w_mode, 0, 50, c_ltgreen, 'e');
mvwprintz(w_mode, 0, 71, c_ltgreen, "ESC");
mvwprintz(w_mode, 0, 74, c_ltgray, "-back");
mvwprintz(w_mode, 0, 70, c_ltgreen, "ESC");
mvwprintz(w_mode, 0, 73, c_ltgray, "-back");
wrefresh (w_mode);
}
+3 -1
View File
@@ -1,6 +1,8 @@
#if (defined _WIN32 || defined WINDOWS || defined MINGW) && ! defined CROSS_LINUX && !defined _MSC_VER
#define VERSION "0.6-git" // FIXME: automatically generate VERSION based on git
#ifndef VERSION
#define VERSION "0.7.1" // FIXME: automatically generate VERSION based on git
#endif
#else