Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phpdts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nemo Ma
phpdts
Commits
e538d938
Commit
e538d938
authored
Jan 08, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interim2
parent
6f85c843
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
69 additions
and
5 deletions
+69
-5
gamedata/sql/players.sql
gamedata/sql/players.sql
+10
-0
include/game/achievement.func.php
include/game/achievement.func.php
+2
-2
include/game/clubskills.func.php
include/game/clubskills.func.php
+1
-1
include/game/dice.func.php
include/game/dice.func.php
+44
-0
include/game/item.func.php
include/game/item.func.php
+9
-1
templates/default/end.htm
templates/default/end.htm
+1
-1
templates/default/winnerlist.htm
templates/default/winnerlist.htm
+2
-0
No files found.
gamedata/sql/players.sql
View file @
e538d938
...
@@ -148,6 +148,16 @@ CREATE TABLE bra_players (
...
@@ -148,6 +148,16 @@ CREATE TABLE bra_players (
statusc
int
(
10
)
NOT
NULL
default
'0'
,
statusc
int
(
10
)
NOT
NULL
default
'0'
,
statusd
int
(
10
)
NOT
NULL
default
'0'
,
statusd
int
(
10
)
NOT
NULL
default
'0'
,
statuse
int
(
10
)
NOT
NULL
default
'0'
,
statuse
int
(
10
)
NOT
NULL
default
'0'
,
clbstatusa
int
(
10
)
NOT
NULL
default
'0'
,
clbstatusb
int
(
10
)
NOT
NULL
default
'0'
,
clbstatusc
int
(
10
)
NOT
NULL
default
'0'
,
clbstatusd
int
(
10
)
NOT
NULL
default
'0'
,
clbstatuse
int
(
10
)
NOT
NULL
default
'0'
,
nikstatusa
int
(
10
)
NOT
NULL
default
'0'
,
nikstatusb
int
(
10
)
NOT
NULL
default
'0'
,
nikstatusc
int
(
10
)
NOT
NULL
default
'0'
,
nikstatusd
int
(
10
)
NOT
NULL
default
'0'
,
nikstatuse
int
(
10
)
NOT
NULL
default
'0'
,
element0
mediumint
unsigned
NOT
NULL
default
'0'
,
element0
mediumint
unsigned
NOT
NULL
default
'0'
,
element1
mediumint
unsigned
NOT
NULL
default
'0'
,
element1
mediumint
unsigned
NOT
NULL
default
'0'
,
element2
mediumint
unsigned
NOT
NULL
default
'0'
,
element2
mediumint
unsigned
NOT
NULL
default
'0'
,
...
...
include/game/achievement.func.php
View file @
e538d938
...
@@ -1085,13 +1085,13 @@ function check_item_achievement($nn,$i,$ie,$is,$ik,$isk)
...
@@ -1085,13 +1085,13 @@ function check_item_achievement($nn,$i,$ie,$is,$ik,$isk)
if
(
$uu
>
9999999
)
$uu
=
9999999
;
if
(
$uu
>
9999999
)
$uu
=
9999999
;
update_achievement
(
55
,
$nn
,
$uu
);
update_achievement
(
55
,
$nn
,
$uu
);
if
(((
int
)
fetch_achievement
(
55
,
$nn
)
>=
17777
)
&&
(
check_achievement
(
55
,
$nn
))
<
999
)
{
if
(((
int
)
fetch_achievement
(
55
,
$nn
)
>=
17777
)
&&
(
check_achievement
(
55
,
$nn
))
<
999
)
{
done_achievement
(
5
4
,
999
,
$nn
);
done_achievement
(
5
5
,
999
,
$nn
);
$db
->
query
(
"UPDATE
{
$tablepre
}
users SET credits=credits WHERE username='"
.
$nn
.
"'"
);
$db
->
query
(
"UPDATE
{
$tablepre
}
users SET credits=credits WHERE username='"
.
$nn
.
"'"
);
$db
->
query
(
"UPDATE
{
$tablepre
}
users SET credits2=credits2+200 WHERE username='"
.
$nn
.
"'"
);
$db
->
query
(
"UPDATE
{
$tablepre
}
users SET credits2=credits2+200 WHERE username='"
.
$nn
.
"'"
);
include_once
GAME_ROOT
.
'./include/game/titles.func.php'
;
include_once
GAME_ROOT
.
'./include/game/titles.func.php'
;
get_title
(
"无情补丁"
,
$nn
);
get_title
(
"无情补丁"
,
$nn
);
}
}
elseif
((
int
)
fetch_achievement
(
55
,
$nn
)
>=
77
777
&&
(
check_achievement
(
55
,
$nn
)
<
2
))
{
elseif
((
int
)
fetch_achievement
(
55
,
$nn
)
>=
1
777
&&
(
check_achievement
(
55
,
$nn
)
<
2
))
{
done_achievement
(
55
,
2
,
$nn
);
done_achievement
(
55
,
2
,
$nn
);
$db
->
query
(
"UPDATE
{
$tablepre
}
users SET credits=credits WHERE username='"
.
$nn
.
"'"
);
$db
->
query
(
"UPDATE
{
$tablepre
}
users SET credits=credits WHERE username='"
.
$nn
.
"'"
);
$db
->
query
(
"UPDATE
{
$tablepre
}
users SET credits2=credits2+50 WHERE username='"
.
$nn
.
"'"
);
$db
->
query
(
"UPDATE
{
$tablepre
}
users SET credits2=credits2+50 WHERE username='"
.
$nn
.
"'"
);
...
...
include/game/clubskills.func.php
View file @
e538d938
...
@@ -1047,7 +1047,7 @@ function get_clubskill_bonus_spd($clb,$skl)
...
@@ -1047,7 +1047,7 @@ function get_clubskill_bonus_spd($clb,$skl)
$r
=
1
;
$r
=
1
;
for
(
$i
=
1
;
$i
<=
2
;
$i
++
)
for
(
$i
=
1
;
$i
<=
2
;
$i
++
)
{
{
if
(
$clb
==
13
)
$r
*=
(
1
-
$clskl
[
13
][
$
{
'a'
.
$i
}][
1
]
/
100
);
//超能力者称号
if
(
$clb
==
9
)
$r
*=
(
1
-
$clskl
[
13
][
$
{
'a'
.
$i
}][
1
]
/
100
);
//超能力者称号
}
}
return
$r
;
return
$r
;
}
}
...
...
include/game/dice.func.php
0 → 100644
View file @
e538d938
<?php
if
(
!
defined
(
'IN_GAME'
))
{
exit
(
'Access Denied'
);
}
// File to process all dice related actions.
// Moving all logic related to $dice here
// 这样「奇迹的篝火」类头衔也好处理一点。
// So basically, replace all $dice rands and implement new dice items.
// Let's roll.
require_once
'./include/common.inc.php'
;
function
diceroll
(
$dice
){
global
$rp
,
$nick
;
global
$log
;
global
$nikstatusa
,
$nikstatuse
;
$result
=
rand
(
0
,
$dice
);
//process 孤注一掷
if
(
$nikstatusa
==
1
){
//set dice to max value
$result
=
$dice
;
//reset
$nikstatusa
=
$nikstatuse
=
0
;
}
elseif
(
$nikstatusa
==
2
){
//set dice to mid value
$result
=
round
(
$dice
/
2
);
$nikstatusa
=
$nikstatuse
=
0
;
}
elseif
(
$nikstatusa
==
3
){
//set dice to 1
$result
=
1
;
$nikstatusa
=
$nikstatuse
=
0
;
}
if
(
$nick
==
"奇迹的篝火"
){
$log
.=
"你本次骰子的检定结果为:<br><span class=
\"
red
\"
>
$result
</span>\<span class=
\"
yellow
\"
>
$dice
</span>!<br>"
;
}
$log
.=
"【DEBUG】你本次骰子的检定结果为:<br><span class=
\"
red
\"
>
$result
</span>\<span class=
\"
yellow
\"
>
$dice
</span>!<br>"
;
return
$result
;
}
?>
\ No newline at end of file
include/game/item.func.php
View file @
e538d938
...
@@ -789,7 +789,10 @@ function itemuse($itmn) {
...
@@ -789,7 +789,10 @@ function itemuse($itmn) {
$log
.=
"你打开了<span class=
\"
yellow
\"
>
$itm
</span>。<br>"
;
$log
.=
"你打开了<span class=
\"
yellow
\"
>
$itm
</span>。<br>"
;
if
(
strpos
(
$itmk
,
'ps'
)
===
0
){
//银色盒子
if
(
strpos
(
$itmk
,
'ps'
)
===
0
){
//银色盒子
include_once
config
(
'randomitem'
,
$gamecfg
);
include_once
config
(
'randomitem'
,
$gamecfg
);
$dice
=
rand
(
1
,
100
);
//1st case of the new diceroll system.
include_once
GAME_ROOT
.
'./include/game/dice.func.php'
;
$dice
=
diceroll
(
100
);
//$dice = rand(1,100);
if
(
$dice
<=
75
){
//一般物品
if
(
$dice
<=
75
){
//一般物品
$itemflag
=
$itmlow
;
$itemflag
=
$itmlow
;
}
elseif
(
$dice
<=
95
){
//中级道具
}
elseif
(
$dice
<=
95
){
//中级道具
...
@@ -869,6 +872,11 @@ function itemuse($itmn) {
...
@@ -869,6 +872,11 @@ function itemuse($itmn) {
$trapresult
=
$db
->
query
(
"SELECT * FROM
{
$tablepre
}
maptrap WHERE pls = '
$pls
' AND itme>='
$itme
'"
);
$trapresult
=
$db
->
query
(
"SELECT * FROM
{
$tablepre
}
maptrap WHERE pls = '
$pls
' AND itme>='
$itme
'"
);
$trpnum
=
$db
->
num_rows
(
$trapresult
);
$trpnum
=
$db
->
num_rows
(
$trapresult
);
$itms
--
;
$itms
--
;
if
(
$itms
<=
0
)
{
$log
.=
"<span class=
\"
red
\"
>
$itm
</span>用光了。<br>"
;
$itm
=
$itmk
=
$itmsk
=
''
;
$itme
=
$itms
=
0
;
}
if
(
$trpnum
>
0
){
if
(
$trpnum
>
0
){
$itemno
=
rand
(
0
,
$trpnum
-
1
);
$itemno
=
rand
(
0
,
$trpnum
-
1
);
$db
->
data_seek
(
$trapresult
,
$itemno
);
$db
->
data_seek
(
$trapresult
,
$itemno
);
...
...
templates/default/end.htm
View file @
e538d938
...
@@ -437,7 +437,7 @@
...
@@ -437,7 +437,7 @@
把手上缠绕着和少女手腕上相同的丝带;
<br>
把手上缠绕着和少女手腕上相同的丝带;
<br>
剑柄上闪耀着亮蓝色的条形霓虹灯光;
<br>
剑柄上闪耀着亮蓝色的条形霓虹灯光;
<br>
底端的刃上则是闪耀的橙色火焰。
<br><br>
底端的刃上则是闪耀的橙色火焰。
<br><br>
<img
border=
"0"
src=
"/img/
Miracle C
ampfire.jpg"
><br><br>
<img
border=
"0"
src=
"/img/
miracle_c
ampfire.jpg"
><br><br>
<span
class=
"linen"
>
“Unlimited Code Works: Miracle Campfire, Activate.”
</span><br>
<span
class=
"linen"
>
“Unlimited Code Works: Miracle Campfire, Activate.”
</span><br>
少女伸出了左手,示意着你接过武器。
<br>
少女伸出了左手,示意着你接过武器。
<br>
不知道被什么驱使,你接过了这柄看起来沉重却无比轻盈的武器。
<br>
不知道被什么驱使,你接过了这柄看起来沉重却无比轻盈的武器。
<br>
...
...
templates/default/winnerlist.htm
View file @
e538d938
...
@@ -30,7 +30,9 @@
...
@@ -30,7 +30,9 @@
<TD
class=
"b3"
>
<!--{if $info['hkill']}-->
<span
class=
"white"
><u><a
href=
"user_profile.php?playerID=$info['hkp']"
>
$info['hkp']
</a></u></span>
<!--{else}-->
<span
class=
"grey"
>
无
</span>
<!--{/if}-->
</TD>
<TD
class=
"b3"
>
<!--{if $info['hkill']}-->
<span
class=
"white"
><u><a
href=
"user_profile.php?playerID=$info['hkp']"
>
$info['hkp']
</a></u></span>
<!--{else}-->
<span
class=
"grey"
>
无
</span>
<!--{/if}-->
</TD>
<TD
class=
"b3"
>
<TD
class=
"b3"
>
<span>
<span>
<!--{if $info['wmode'] && $info['wmode'] != 1 && $info['wmode'] !=4 && $info['wmode'] != 6}-->
<span
class=
"white"
><a
href=
"winner.php?command=info&gnum=$info[gid]"
>
🥇
</a></span>
<!--{else}-->
<!--{/if}-->
<input
type=
"button"
value=
"角色信息"
<!
--
{
if
$
info
['
wmode
']
&&
$
info
['
wmode
']
!=
1
&&
$
info
['
wmode
']
!=
4
&&
$
info
['
wmode
']
!=
6
}
--
>
onclick="$('command').value='info';$('gnum').value='$gid';document.info.submit();"
<!--{else}-->
disabled
<!--{/if}-->
>
<input
type=
"button"
value=
"角色信息"
<!
--
{
if
$
info
['
wmode
']
&&
$
info
['
wmode
']
!=
1
&&
$
info
['
wmode
']
!=
4
&&
$
info
['
wmode
']
!=
6
}
--
>
onclick="$('command').value='info';$('gnum').value='$gid';document.info.submit();"
<!--{else}-->
disabled
<!--{/if}-->
>
<!--{if $info['wmode'] && $info['wmode'] !=4}-->
<span
class=
"white"
><a
href=
"winner.php?command=news&gnum=$info[gid]"
>
📼
</a></span>
<!--{else}-->
<!--{/if}-->
<input
type=
"button"
value=
"该局状况"
<!
--
{
if
$
info
['
wmode
']
&&
$
info
['
wmode
']
!=
4
}
--
>
onclick="$('command').value='news';$('gnum').value='$gid';document.info.submit();"
<!--{else}-->
disabled
<!--{/if}-->
>
<input
type=
"button"
value=
"该局状况"
<!
--
{
if
$
info
['
wmode
']
&&
$
info
['
wmode
']
!=
4
}
--
>
onclick="$('command').value='news';$('gnum').value='$gid';document.info.submit();"
<!--{else}-->
disabled
<!--{/if}-->
>
</span>
</span>
</TD>
</TD>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment