summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-23 21:14:36 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-23 21:14:36 -0300
commit299c64e05a548751c1ada1dcae46a5fdb6865991 (patch)
treefc27247d508af87e3cc096d4d24428a252130730
parent799e5bed054f84118ad0ac7b3be7058fee550602 (diff)
downloadserver-299c64e05a548751c1ada1dcae46a5fdb6865991.tar.gz
server-299c64e05a548751c1ada1dcae46a5fdb6865991.tar.bz2
server-299c64e05a548751c1ada1dcae46a5fdb6865991.tar.xz
server-299c64e05a548751c1ada1dcae46a5fdb6865991.zip
Level boosts are now extremely predictable: They boost status in 1%
Do note that stats were nerfed with the new recalc patch (being applied to units)
-rw-r--r--battle/main.py5
-rw-r--r--player.py35
-rw-r--r--units.json16
3 files changed, 11 insertions, 45 deletions
diff --git a/battle/main.py b/battle/main.py
index f19dc6b..d5470db 100644
--- a/battle/main.py
+++ b/battle/main.py
@@ -282,9 +282,10 @@ def begin_quest(args, token, client_side=True):
stdout("Preparing party member")
# How much HP/ATK bonus per level you'll get?
+ # Each level boosts your stats in 1%
lvl=int(Player[token]["inv"][ux["inv_id"]]["level"])-1
- hpboost=player.readjust_status(un["rare"], un["job"], True)*max(lvl-1, 0)
- akboost=player.readjust_status(un["rare"], un["job"], False)*max(lvl-1, 0)
+ hpboost=int(un["hp"]*(max(lvl-1, 0)/100.0))
+ akboost=int(un["strength"]*(max(lvl-1, 0)/100.0))
# generate unit data for battle
Battle[token]["party"].append({
diff --git a/player.py b/player.py
index db3d704..c48a22a 100644
--- a/player.py
+++ b/player.py
@@ -137,41 +137,6 @@ def inv_dupcheck(token, unique=True):
ar.append(unt["unit_id"])
return ar
-# Techinically a battle function, readjusts a value
-# Rarity affects directly primary stat. We should distribute 140 points
-def readjust_status(rar, job, hp=True):
- newv=50
- # Imbalanced class
- if (job == Job_Swordsman):
- if hp:
- newv+=30+rar
- else:
- newv+=10+(rar/2)
- elif (job == Job_Mage):
- if hp:
- newv+=10+(rar/2)
- else:
- newv+=30+rar
- # Balanced class
- elif (job == Job_Assassin):
- if hp:
- newv+=15+(rar/2)
- else:
- newv+=25+rar
- elif (job == Job_Archer):
- if hp:
- newv+=25+rar
- else:
- newv+=15+(rar/2)
- # All-rounder class, with no steady growth
- elif (job == Job_Gunner):
- if hp:
- newv+=20+(rar/2)
- else:
- newv+=20+(rar/2)
-
- return newv
-
def clear(token, mask=SQL_CLEAR):
# This function saves and clears a token
#########################################
diff --git a/units.json b/units.json
index d9c9caf..7be4c7a 100644
--- a/units.json
+++ b/units.json
@@ -1,12 +1,12 @@
[
{
"skill_id": 1306,
- "strength": 1330,
+ "strength": 1750,
"rare": 6,
"name": "Heroic Guilio",
"ability_id": 43,
"attribute": 1,
- "hp": 1200,
+ "hp": 1050,
"unit_id": 10000000,
"sex": 0,
"max_level": 100,
@@ -18,12 +18,12 @@
},
{
"skill_id": 1306,
- "strength": 1330,
+ "strength": 1250,
"rare": 4,
"name": " Hell Blaze +4",
"ability_id": 43,
"attribute": 1,
- "hp": 1070,
+ "hp": 750,
"unit_id": 10012200,
"sex": 1,
"max_level": 50,
@@ -35,12 +35,12 @@
},
{
"skill_id": 1306,
- "strength": 1560,
+ "strength": 1500,
"rare": 5,
"name": " Hell Blaze +5",
"ability_id": 43,
"attribute": 1,
- "hp": 1250,
+ "hp": 900,
"unit_id": 10012201,
"sex": 1,
"max_level": 60,
@@ -52,12 +52,12 @@
},
{
"skill_id": 1306,
- "strength": 1790,
+ "strength": 1750,
"rare": 6,
"name": " Hell Blaze +6",
"ability_id": 43,
"attribute": 1,
- "hp": 1430,
+ "hp": 1050,
"unit_id": 10012202,
"sex": 1,
"max_level": 70,