-
Notifications
You must be signed in to change notification settings - Fork 84
Test/itemeffects #1491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test/itemeffects #1491
Changes from 31 commits
d61878c
a59e4d7
0c5033d
1a7da20
1189160
bbe6768
026e1b3
6f4b4b5
858a8c1
d7b778f
98f4799
ea33d9a
29f8547
765f258
6da8bea
afc3866
17b6d03
4130f78
3015a4e
e1b1471
dc1c2ef
10b9217
883e24a
378976f
fca85a2
d1ee7ac
fea5316
6d957b7
074a114
8661a52
a7e910d
b18d574
89ac11b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,42 @@ option go_package = "./proto"; | |
|
|
||
| import "common.proto"; | ||
|
|
||
|
|
||
| message ScalingItemEffectProperties { | ||
| // keys are the numeric values of proto.common.Stat | ||
| map<int32, double> stats = 1; | ||
| double rppm_ilvl_modifier = 2; | ||
| } | ||
| message ItemEffect { | ||
| int32 buff_id = 1; | ||
| string buff_name = 6; | ||
| int32 effect_duration = 2; // seconds | ||
|
|
||
| map<int32, ScalingItemEffectProperties> scaling_options = 3; | ||
|
|
||
| oneof effect { | ||
| ProcEffect proc = 4; | ||
| OnUseEffect on_use = 5; | ||
| } | ||
| } | ||
|
|
||
| message ProcEffect { | ||
| double proc_chance = 1; // e.g. 0.20 = 20% | ||
| double ppm = 3; | ||
| int32 rppm_scale = 4; | ||
|
||
| // The key represents a Spec | ||
| map<int32, double> spec_modifiers = 5; | ||
| int32 icd_ms = 2; // internal cooldown in milliseconds | ||
| } | ||
|
|
||
| message OnUseEffect { | ||
| int32 cooldown_ms = 1; // milliseconds between uses | ||
|
|
||
| int32 category_id = 11; | ||
|
|
||
| int32 category_cooldown_ms = 8; // category cooldown in milliseconds | ||
| } | ||
|
|
||
| message SpellEffect { | ||
| int32 id = 1; | ||
| int32 spell_id = 2; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Call this one
effect_duration_msas well so that the units are consistent across the message.