Merge pull request #216 from Crowns3bc/Mass-Exchange

Mass exchange
This commit is contained in:
Kaan Soral
2026-01-13 17:11:58 +03:00
committed by GitHub
5 changed files with 55 additions and 3 deletions
+16
View File
@@ -197,6 +197,22 @@ conditions={
"buff":True,
"ui":True,
},
"massexchange":{
"skin":"skill_massexchange",
"name":"Mass exchange",
"explanation": "Reduces the time of your next exchange or compound by 50%.",
"duration":10*1000,
"buff":True,
"ui":True,
},
"massexchangepp":{
"skin":"skill_massexchangepp",
"name":"Mass exchange++",
"explanation": "Reduces the time of your next exchange or compound by 90%.",
"duration":10*1000,
"buff":True,
"ui":True,
},
"darkblessing":{
"skin":"skill_dbuff",
"name":"Dark Blessing",
+2
View File
@@ -472,6 +472,8 @@ positions={
"skill_throw":["skills",1,5],
"skill_massproduction":["skills",2,5],
"skill_massproductionpp":["skills",3,5],
"skill_massexchange":["skills",4,5],
"skill_massexchangepp":["skills",5,5],
#paladin
"skill_mshield":["skills",0,11],
+22
View File
@@ -373,6 +373,28 @@ skills={
"mp":200,
"cooldown":50,
},
"massexchange":{
"type":"skill",
"skin":"skill_massexchange",
"condition":"massexchange",
"class":["merchant"],
"name":"Mass Exchange",
"explanation":"Adds a 1-time use buff that speeds up the next exchange by 50%. The buff expires in 10 seconds if not used.",
"level":40,
"mp":30,
"cooldown":50,
},
"massexchangepp":{
"type":"skill",
"skin":"skill_massexchangepp",
"condition":"massexchangepp",
"class":["merchant"],
"name":"Mass Exchange++",
"explanation":"Adds a 1-time use buff that speeds up the next exchange by 90%. The buff expires in 10 seconds if not used.",
"level":70,
"mp":200,
"cooldown":50,
},
"throw":{
"type":"skill",
"skin":"skill_throw",
Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 18 KiB

+14 -2
View File
@@ -5602,7 +5602,17 @@ function init_io() {
player.p.stats.exchanges[dropId] = (player.p.stats.exchanges[dropId] || 0) + 1;
consume(player, data.item_num, def.e);
const num = add_item(player, "placeholder");
const ms = gameplay === "hardcore" ? 400 : 3000 + Math.floor(Math.random() * 3000);
let ms = gameplay === "hardcore" ? 400 : 3000 + Math.floor(Math.random() * 3000);
if (player.s.massexchange) {
ms /= 2;
delete player.s.massexchange;
ex = "+u+cid";
}
if (player.s.massexchangepp) {
ms /= 10;
delete player.s.massexchangepp;
ex = "+u+cid";
}
player.q.exchange = { ms: ms, len: ms, name: item.name, id: dropId, q: def.e, num: num };
if (suffix) {
player.q.exchange.s = suffix;
@@ -8647,7 +8657,9 @@ function init_io() {
data.name == "mcourage" ||
data.name == "mfrenzy" ||
data.name == "massproduction" ||
data.name == "massproductionpp"
data.name == "massproductionpp" ||
data.name == "massexchange" ||
data.name == "massexchangepp"
) {
consume_mp(player, gSkill.mp);
player.s[gSkill.condition] = { ms: G.conditions[gSkill.condition].duration };