Skip to content

Commit

Permalink
Merge pull request #3 from NB-Core/v1.2.8
Browse files Browse the repository at this point in the history
V1.2.8.1
  • Loading branch information
NB-Core authored Jul 25, 2019
2 parents 4e79488 + da0d170 commit cf90728
Show file tree
Hide file tree
Showing 17 changed files with 795 additions and 495 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
Changes to 1.2.7 +nb
[CHANGES]
[FIXES]
*battle.php -> isset() needs to check for index values not existing
*prefs.php -> mail address defaulting to 127.0.0.1 in email change email (not nice, not critical), changed
*modules/* -> modules updated to current
[REMOVES]

[NEW]
*modules/charrestore.hp -> added char restorer

Changes to 1.2.6 +nb
[CHANGES]
*lib/buffs.php -> added strip_companion($name) which removes one or more companions safely
Expand Down
5 changes: 5 additions & 0 deletions battle.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@
show_enemies($enemies);
}

if (!isset($options['type'])) {
// no type set, do it for them, to pve
$options['type'] = 'forest';
}
suspend_buffs((($options['type'] == 'pvp')?"allowinpvp":false));
suspend_companions((($options['type'] == 'pvp')?"allowinpvp":false));

Expand Down Expand Up @@ -394,6 +398,7 @@
// experience would stay the same
// We'll also check if the user is actually alive. If we didn't, we would hand out
// experience for graveyard fights.
if (!isset($badguy['creatureexp'])) $badguy['creatureexp']=0; //if this was not set, make it
if (getsetting("instantexp",false) == true && $session['user']['alive'] && $options['type'] != "pvp" && $options['type'] != "train") {
if (!isset($badguy['expgained']) || $badguy['expgained'] == false) {
$cr_xp_gain = round($badguy['creatureexp']/count($newenemies));
Expand Down
6 changes: 3 additions & 3 deletions lib/all_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function get_all_tables(){
),
//these are the main stats. buffed up attack or defense will be reset eventually =)
'specialty'=>array(
'name'=>'specialty', 'type'=>'varchar(20)', //normally 2 chars are used only
'name'=>'specialty', 'type'=>'varchar(20)', 'default'=>'', //normally 2 chars are used only
),
'experience'=>array(
'name'=>'experience', 'type'=>'bigint(11) unsigned', 'default'=>'0' //the amount of experience
Expand Down Expand Up @@ -177,7 +177,7 @@ function get_all_tables(){
'name'=>'gentimecount', 'type'=>'int(11) unsigned', 'default'=>'0'
),
'lastip'=>array(
'name'=>'lastip', 'type'=>'varchar(40)'
'name'=>'lastip', 'type'=>'varchar(40)', 'default'=>''
),
'uniqueid'=>array(
'name'=>'uniqueid', 'type'=>'varchar(32)', 'null'=>'1'
Expand Down Expand Up @@ -636,7 +636,7 @@ function get_all_tables(){
'name'=>'descauthor', 'type'=>'int(11) unsigned', 'default'=>'0'
),
'customsay'=>array(
'name'=>'customsay', 'type'=>'varchar(15)'
'name'=>'customsay', 'type'=>'varchar(15)', 'default'=>''
),
'key-PRIMARY'=>array(
'name'=>'PRIMARY',
Expand Down
Loading

0 comments on commit cf90728

Please sign in to comment.