posion passive ability for items

This commit is contained in:
Kaan Soral
2025-03-23 10:57:13 +03:00
parent c2d0cfceab
commit 338193dea9
8 changed files with 27 additions and 12 deletions
+3 -4
View File
@@ -114,12 +114,11 @@ if is_production:
#maps["desertland"]["key"]="jayson_desertland_copy"
pass
game_version=810
game_version=812
SALES=4+5+388+5101+125/20 #donation+manual+macos+steam+sales
update_notes=[
"Last Update [17th of Fabruary]",
"PR: Normalize Dead Weapon Drop Rates #159",
"PR: Destat NPC #119",
"Last Update [28th of February]",
"Poison passive ability for items",
]
ip_to_subdomain={ #IMPORTANT: SPECIAL PAGE RULES ARE NEEDED: https://dash.cloudflare.com/b6f5a13bded5fdd273e4a1cd3777162d/adventure.land/page-rules - uss1 / eus1 was best
"35.187.255.184":"asia1",
+1 -1
View File
@@ -17,7 +17,7 @@ drops={
],
"global":[
#[0.000015,"goldenegg"], #originally 0.000005
[0.0000001,"5bucks"],
#[0.0000001,"5bucks"],
#[0.0002,"gift0"],
#[0.004,"gift1"],
#[0.0004,"redenvelope"],
+4 -2
View File
@@ -29,10 +29,12 @@ items={
"skin":"test_orb",
"name":"Orb of Testing",
#"manasteal":0.25,
"fzresistance":20,
"firesistance":20,
#"fzresistance":20,
#"firesistance":20,
#"mp_reduction":20,
#"ability":"restore_mp",
"ability":"poison",
"attr0":50,
#"attr0":8,
"compound":{
},
File diff suppressed because one or more lines are too long
+3 -4
View File
@@ -1,16 +1,15 @@
<div style="background: black; padding: 2px; width: 336px; border: 5px solid gray; margin-bottom: -10px; position: fixed; bottom: 276px; left: 0px; z-index: 10"
{#<div style="background: black; padding: 2px; width: 336px; border: 5px solid gray; margin-bottom: -10px; position: fixed; bottom: 276px; left: 0px; z-index: 10"
class="clickable ibshadow enableclicks salesui" onclick="btc(event); show_opensource_info()"><!-- previously margin-bottom: -5px; [16/07/18] -->
<div style="background: #3A968E; width: {{domain|sales_percent}}%; height: 30px" id="ggslider" class='flashp'></div> <!-- red #B12727 green #368C2B -->
<div style="position: absolute; width: 316px; top: 2px; left: 0px; height: 30px; color: white; vertical-align: middle; line-height: 30px; text-align: center; font-size: 30px" id="ggui" class='clickable enableclicks' onclick="btc(event); show_opensource_info()">
{{domain.sales|to_pretty_num}} / 10,000
</div>
</div>
</div>#}
<div id="features" style="font-size: 24px; max-width: 320px; height: 240px; overflow-y: scroll" class="noscroll">
<div style='border-bottom: 2px dashed gray; color: #E7E7E7; display: inline-block; margin-bottom: 6px'>Things to look forward to</div>
<div class="infot" style='color:#33BF6D'>Open Source + New Horizons</div>
<div class="infop">
After 10,000 digital copy sales, going to open source the game. I hope the game will act as a boilerplate for new MMORPG's with unexplored / unique dynamics.
{#Going to release the game on Steam as Early Access around mid-December and after reaching a pre-set goal, the game will be open sourced and a new era will begin! (hopefully :)#}
As the game is open sourced now, new content and items from community can enrich our game.
</div>
{#<div class="infot" style='color:#36B3D3; color:#C82F17'>Tavern</div>
<div class="infop">
+5
View File
@@ -3202,6 +3202,11 @@ function render_item(selector,args)
html+=bold_prop_line("Ability","Freeze","#2EBCE2");
html+="<div style='color: #C3C3C3'>"+"Freezes the opponent with a "+prop.attr0+"% chance.</div>";
}
else if(item.ability=="poison")
{
html+=bold_prop_line("Ability","Poison",colors.poison);
html+="<div style='color: #C3C3C3'>"+"Poisons the opponent with a "+prop.attr0+"% chance.</div>";
}
else if(item.ability=="burn")
{
html+=bold_prop_line("Ability","Burn","#E03D31");
+7
View File
@@ -2995,6 +2995,13 @@ function commence_attack(attacker, target, atype) {
) {
info.conditions.push("frozen");
}
if (
info.procs &&
attacker.a.poison &&
Math.random() < (attacker.a.poison.attr0 * (G.maps[attacker.map].poison_multiplier || 1)) / 100.0
) {
info.conditions.push("poisoned");
}
if (
info.procs &&
attacker.a.burn &&
+3
View File
@@ -2721,6 +2721,9 @@ function add_condition(target, condition, args) {
if (condition == "frozen") {
disappearing_text(target.socket, target, "FREEZE!", { xy: 1, size: "huge", color: "freeze", nv: 1 });
}
if (condition == "poisoned") {
disappearing_text(target.socket, target, "POISON!", { xy: 1, color: "poison", nv: 1 });
}
if (condition == "burned") {
let scale = 1.0 - (target.firesistance || 0) / 100.0;
duration = 5000;