Und ein weiterer Versuch reborn ans laufen zu bekommen.

main
hecht 10 years ago
parent 721a4e46d3
commit 122182c250

@ -31,6 +31,7 @@ include_once(ROOT_PATH.'/include/usergroup.inc.php');
include_once(ROOT_PATH.'/gm/include/attacken.inc.php');
include_once(ROOT_PATH.'/gm/include/bilderschau.inc.php');
include_once(ROOT_PATH.'/gm/include/clan.inc.php');
include_once(ROOT_PATH.'/gm/include/geheim.inc.php');
include_once(ROOT_PATH.'/gm/include/info.inc.php');
include_once(ROOT_PATH.'/gm/include/item.inc.php');
include_once(ROOT_PATH.'/gm/include/monster.inc.php');
@ -111,6 +112,9 @@ function displayLogin(){
}
function displayOptions(){
// FIXME: Hinzufuegen der Includes und der Entry Funktion im Array und wir brauchen
// in dieser Datei deutlich weniger Copy&Paste!
$entries = array("bilder" => "Bilderschau",
"faq" => "FAQ bearbeiten",
"rassen" => "Rassen bearbeiten",

@ -14,17 +14,19 @@ defineIfNotDefined('GEHEIM_CHANCE_NIETE', 0.5);
function displayGeheim($request) {
?>
<form action="" method="POST">
<input name="choose" value="clan" type="hidden"></input>
<input name="action" value="<?php echo $action; ?>" type="hidden"></input>
<table>
<tr>
<th colspan="4">
Geheim Übersicht
</th>
<th colspan="4">Geheim Übersicht</th>
</tr>
<tr>
<td>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">Zum Hauptmenu</a>
<td><a href="<?php echo $_SERVER['PHP_SELF']; ?>">Zum Hauptmenu</a>
</td>
</tr>
</table>
</form>
<?php
}

@ -41,72 +41,84 @@ if(!$aktion_AV1[$x]){
}
if(!$aktion_AV2[$x]) {
if($zufall_pl2 > $play1_ausweich) {
if($zufall_pl2 > $play1_ausweich) {
$alt_hp = $k_hp[0];
$alt_hp = $k_hp[0];
$charsa2_def = $k_ver[0]+$technick1['verteidigung'];
$charsa2_4_def = ($k_ver[0]+$technick1['verteidigung']) / 1.1;
$charsa2_def = $k_ver[0]+$technick1['verteidigung'];
$charsa2_4_def = ($k_ver[0]+$technick1['verteidigung']) / 1.1;
if($charsa2_def <= 2) {
if($charsa2_def <= 2) {
$charsa2_def = 2;
}
if($charsa2_4_def < 1) {
if($charsa2_4_def < 1) {
$charsa2_4_def = 1;
}
$charsa2_def = mt_rand($charsa2_4_def,$charsa2_def);
$charsa2_str = $k_starke[1]*1.2+$technick2['starke'];
$charsa2_4_str = ($k_starke[1] *1.2 +$technick2['starke']) +1;
$charsa2_def = mt_rand($charsa2_4_def,$charsa2_def);
$charsa2_str = $k_starke[1]*1.2+$technick2['starke'];
$charsa2_4_str = ($k_starke[1] *1.2 +$technick2['starke']) +1;
if($charsa1_str <= 2) {
if($charsa1_str <= 2) {
$charsa1_str = 2;
}
if($charsa2_4_str < 1) {
if($charsa2_4_str < 1) {
$charsa2_4_str = 1;
}
$charsa2_str = mt_rand($charsa2_4_str,$charsa2_str);
$charsa2_str = mt_rand($charsa2_4_str,$charsa2_str);
$k_hp[0] = round(($k_hp[0] + $charsa2_def - $charsa2_str + mt_rand(1,20)));
$schaden_2 = $alt_hp - $k_hp[0];
$k_hp[0] = round(($k_hp[0] + $charsa2_def - $charsa2_str + mt_rand(1,20)));
$schaden_2 = $alt_hp - $k_hp[0];
if($alt_hp < $k_hp[0]) {
if($alt_hp < $k_hp[0]) {
$k_hp[0] = $alt_hp; $schaden_2 = 0;
}
} else {
$schaden_2 = 'Keinen Schaden';
}
} else {
$schaden_2 = 'Keinen Schaden';
}
}
if(!$technick1['name']) {
$technick1['name'] = 'Normaler Kick';
}
}
if(!$technick2['name']) {
$technick2['name'] = 'Normaler Kick';
}
}
// Nun kommt reborn an die reihe!
if(isset($reborn_hp[0]) && $k_hp[0] <= 0) {
$k_hp[0] = $reborn_hp[0];
unset($reborn_hp[0]);
$schaden_1 .= '<br>Reborn!';
}
if(isset($reborn_hp[1]) && $k_hp[1] <= 0) {
$k_hp[1] = $reborn_hp[1];
unset($reborn_hp[1]);
$schaden_2 .= '<br>Reborn!';
}
if($k_hp[0]<0) {
$k_hp7[0] = 0;
} else {
} else {
$k_hp7[0] = $k_hp[0];
}
}
if($k_mp[0]<0) {
$k_mp7[0] = 0;
} else {
} else {
$k_mp7[0] = $k_mp[0];
}
}
if($k_hp[1]<0) {
$k_hp7[1] = 0;
} else {
} else {
$k_hp7[1] = $k_hp[1];
}
}
if($k_mp[1]<0) {
$k_mp7[1] = 0;
} else {
} else {
$k_mp7[1] = $k_mp[1];
}
}
?>

@ -7,10 +7,8 @@
*
*/
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
################### Spieler 1
if ($technick1['type'] == 'reborn') {
################### Spieler 1
if ($technick1['type'] == 'reborn') {
$k_mp[0] = $k_mp[0] - $technick1['mp'];
if ($k_mp[0] >= 0) {
$reborn_hp[0] = ($k_hp1[1] / 100) * $technick1['hp'];
@ -21,11 +19,11 @@ if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
}
$aktion_AV1[$x] = 'nein';
}
}
################### Spieler 2
################### Spieler 2
if ($technick2['type'] == 'reborn') {
if ($technick2['type'] == 'reborn') {
$k_mp[1] = $k_mp[1] - $technick2['mp'];
if ($k_mp[1] >= 0) {
$reborn_hp[1] = ($k_hp2[1] / 100) * $technick2['hp'];
@ -36,17 +34,5 @@ if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
}
$aktion_AV2[$x] = 'nein';
}
}
if(isset($reborn_hp[0]) && $k_hp[0] <= 0) {
$k_hp[0] = $reborn_hp[0];
unset($reborn_hp[0]);
$schaden_1 .= '<br>Reborn!';
}
if(isset($reborn_hp[1]) && $k_hp[1] <= 0) {
$k_hp[1] = $reborn_hp[1];
unset($reborn_hp[1]);
$schaden_2 .= '<br>Reborn!';
}

@ -208,9 +208,9 @@ function calculateFight(array $char1, array $char2) {
include (ROOT_PATH . '/include/kampf/konter_heal.php');
//Nach Konterheal, damit überstehende HP bleibt
include (ROOT_PATH . '/include/kampf/tausch.php');
include (ROOT_PATH . '/include/kampf/reborn.php');
}
include (ROOT_PATH . '/include/kampf/heilung.php');
include (ROOT_PATH . '/include/kampf/reborn.php');
#####################################KAMPF SYSTEM
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');

@ -252,9 +252,9 @@ function monsterfight_neu($chara_1, $fight_monster, $std, $ort){
include (ROOT_PATH . '/include/kampf/konter_heal.php');
//Nach Konterheal, damit überstehende HP bleibt
include (ROOT_PATH . '/include/kampf/tausch.php');
include (ROOT_PATH . '/include/kampf/reborn.php');
}
include (ROOT_PATH . '/include/kampf/heilung.php');
include (ROOT_PATH . '/include/kampf/reborn.php');
#####################################KAMPF SYSTEM
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');

@ -209,9 +209,9 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
include (ROOT_PATH . '/include/kampf/konter_heal.php');
//Nach Konterheal, damit überstehende HP bleibt
include (ROOT_PATH . '/include/kampf/tausch.php');
include (ROOT_PATH . '/include/kampf/reborn.php');
}
include (ROOT_PATH . '/include/kampf/heilung.php');
include (ROOT_PATH . '/include/kampf/reborn.php');
#####################################KAMPF SYSTEM
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');

@ -199,9 +199,9 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
include (ROOT_PATH . '//include/kampf/konter_heal.php');
//Nach Konterheal, damit überstehende HP bleibt
include (ROOT_PATH . '//include/kampf/tausch.php');
include (ROOT_PATH . '//include/kampf/reborn.php');
}
include (ROOT_PATH . '//include/kampf/heilung.php');
include (ROOT_PATH . '//include/kampf/reborn.php');
#####################################KAMPF SYSTEM
include (ROOT_PATH . '//include/kampf/kampf_rechnung.php');

@ -50,7 +50,7 @@ if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include ('include/kampf/konter_heal.php');
//Nach Konterheal, damit überstehende HP bleibt
include ('include/kampf/tausch.php');
include ('include/kampf/reborn.php');
}
include ('include/kampf/heilung.php');
include ('include/kampf/reborn.php');

Loading…
Cancel
Save