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
1f5fc613
Commit
1f5fc613
authored
Jan 13, 2024
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes
FIX: Mtkkk avatar FIX: D100 calculation
parent
acfdc624
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
img/n_109.gif
img/n_109.gif
+0
-0
include/game/item.func.php
include/game/item.func.php
+9
-9
No files found.
img/n_109.gif
View replaced file @
acfdc624
View file @
1f5fc613
26.9 KB
|
W:
|
H:
9.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
include/game/item.func.php
View file @
1f5fc613
...
@@ -1413,7 +1413,7 @@ function itemuse($itmn,&$data=NULL) {
...
@@ -1413,7 +1413,7 @@ function itemuse($itmn,&$data=NULL) {
}
}
//Generate a random number based on player's 1st Yume Value.
//Generate a random number based on player's 1st Yume Value.
$dicebreak
=
diceroll
(
$clbpara
[
'randver1'
]);
$dicebreak
=
diceroll
(
$clbpara
[
'randver1'
]);
if
(
$dicebreak
>
$clbpara
[
'randver1'
]
/
3
){
if
(
$dicebreak
>
$clbpara
[
'randver1'
]
/
4
){
$log
.=
'骰子落了下来,令人惊奇的是,它竟然没有被摔坏,还可以继续使用!<br>'
;
$log
.=
'骰子落了下来,令人惊奇的是,它竟然没有被摔坏,还可以继续使用!<br>'
;
$itm0
=
'[D40]'
;
$itm0
=
'[D40]'
;
$itmk0
=
'🎲'
;
$itmk0
=
'🎲'
;
...
@@ -1438,20 +1438,20 @@ function itemuse($itmn,&$data=NULL) {
...
@@ -1438,20 +1438,20 @@ function itemuse($itmn,&$data=NULL) {
//Then, we calculate your new values:
//Then, we calculate your new values:
$log
.=
'你突然觉得头晕目眩!<br>'
;
$log
.=
'你突然觉得头晕目眩!<br>'
;
//->mhp and msp
//->mhp and msp
$tvalue
=
$mhp
+
$msp
+
$mss
;
$tvalue
=
round
((
$mhp
+
$msp
+
$mss
)
/
2
)
;
//Make sure you don't die from this.
//Make sure you don't die from this.
$hp
=
$mhp
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$hp
=
$mhp
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$sp
=
$msp
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$sp
=
$msp
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$mss
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$mss
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$ss
=
$mss
/
2
;
$ss
=
round
(
$mss
/
2
)
;
$log
.=
'你的最大生命,最大体力值与歌魂发生了变化!<br>'
;
$log
.=
'你的最大生命,最大体力值与歌魂发生了变化!<br>'
;
//->atk and def
//->atk and def
$avalue
=
$att
+
$def
;
$avalue
=
round
((
$att
+
$def
)
/
1.5
)
;
$att
=
(
diceroll
(
$avalue
)
+
1
)
*
$chosenone
;
$att
=
(
diceroll
(
$avalue
)
+
1
)
*
$chosenone
;
$def
=
(
diceroll
(
$avalue
)
+
1
)
*
$chosenone
;
$def
=
(
diceroll
(
$avalue
)
+
1
)
*
$chosenone
;
$log
.=
'你的攻击力与防御力发生了变化!<br>'
;
$log
.=
'你的攻击力与防御力发生了变化!<br>'
;
//->w values
//->w values
$wvalue
=
round
((
$wp
+
$wk
+
$wd
+
$wc
+
$wg
+
$wf
)
/
2
);
$wvalue
=
round
((
$wp
+
$wk
+
$wd
+
$wc
+
$wg
+
$wf
)
/
4
);
$wp
=
(
diceroll
(
$wvalue
)
+
1
)
*
$chosenone
;
$wp
=
(
diceroll
(
$wvalue
)
+
1
)
*
$chosenone
;
$wk
=
(
diceroll
(
$wvalue
)
+
1
)
*
$chosenone
;
$wk
=
(
diceroll
(
$wvalue
)
+
1
)
*
$chosenone
;
$wd
=
(
diceroll
(
$wvalue
)
+
1
)
*
$chosenone
;
$wd
=
(
diceroll
(
$wvalue
)
+
1
)
*
$chosenone
;
...
@@ -1461,9 +1461,9 @@ function itemuse($itmn,&$data=NULL) {
...
@@ -1461,9 +1461,9 @@ function itemuse($itmn,&$data=NULL) {
$log
.=
'你的武器熟练度发生了变化!<br>'
;
$log
.=
'你的武器熟练度发生了变化!<br>'
;
//Generate a random number based on player's 1st Yume Value.
//Generate a random number based on player's 1st Yume Value.
$dicebreak
=
diceroll
(
$clbpara
[
'randver
1
'
]);
$dicebreak
=
diceroll
(
$clbpara
[
'randver
2
'
]);
//check if this value is greater than
half of
player's 1st Yume Value, if so, we do not destroy the item.
//check if this value is greater than player's 1st Yume Value, if so, we do not destroy the item.
if
(
$dicebreak
>
$clbpara
[
'randver1'
]
/
3
){
if
(
$dicebreak
>
$clbpara
[
'randver1'
]){
$log
.=
'骰子落了下来,令人惊奇的是,它竟然没有被摔坏,还可以继续使用!<br>'
;
$log
.=
'骰子落了下来,令人惊奇的是,它竟然没有被摔坏,还可以继续使用!<br>'
;
}
else
{
}
else
{
//destroy the dice item.
//destroy the dice item.
...
@@ -1632,7 +1632,7 @@ function itemuse($itmn,&$data=NULL) {
...
@@ -1632,7 +1632,7 @@ function itemuse($itmn,&$data=NULL) {
$hp
=
$mhp
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$hp
=
$mhp
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$sp
=
$msp
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$sp
=
$msp
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$mss
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$mss
=
(
diceroll
(
$tvalue
)
+
1
)
*
$chosenone
;
$ss
=
$mss
/
2
;
$ss
=
round
(
$mss
/
2
)
;
$log
.=
'你的最大生命,最大体力值与歌魂发生了变化!<br>'
;
$log
.=
'你的最大生命,最大体力值与歌魂发生了变化!<br>'
;
//->atk and def
//->atk and def
$avalue
=
$att
+
$def
;
$avalue
=
$att
+
$def
;
...
...
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