Toggle navigation
Toggle navigation
This project
Loading...
Sign in
kkl
/
Probability Death
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이승규
2019-06-05 16:48:23 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cd6b6b75b247d6060c71178a70e1e07773d04f6f
cd6b6b75
1 parent
2ef021c1
aaa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/socketio.js
lib/socketio.js
View file @
cd6b6b7
...
...
@@ -162,7 +162,7 @@ module.exports = (server, app) => {
//죽을 확률 계산(내맘대로 커스텀)
info
.
death_prob
=
(
(
info
.
heat
/
50
)
+
(
Math
.
abs
(
info
.
sensible_temperature
-
15
)
/
10
)
+
(
info
.
discomport
/
10
)
+
(
info
.
UV
/
10
)
+
info
.
windspd
*
1
+
(
info
.
rain
/
10
)
+
(
Math
.
abs
(
info
.
current_temperature
-
15
)
/
10
)
//+ (info.traffic / 5)
+
info
.
windspd
*
1
+
(
info
.
rain
/
10
)
+
(
Math
.
abs
(
info
.
current_temperature
-
15
)
/
10
)
);
// ------------------------------ death_factor 정의 ------------------------------
...
...
Please
register
or
login
to post a comment