-
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 18 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 |
|---|---|---|
|
|
@@ -4,6 +4,48 @@ package proto; | |
| option go_package = "./proto"; | ||
|
|
||
| import "common.proto"; | ||
| enum ItemEffectType { | ||
| EffectTypeNone = 0; | ||
| EffectTypeProc = 1; | ||
| EffectTypeOnUse = 2; | ||
| } | ||
|
|
||
|
|
||
| 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 = 9; | ||
| ItemEffectType type = 2; | ||
| int32 effect_duration = 3; // seconds | ||
|
|
||
| map<int32, ScalingItemEffectProperties> scaling_options = 4; | ||
|
|
||
| oneof effect { | ||
| ProcEffect proc = 7; | ||
| OnUseEffect on_use = 8; | ||
| } | ||
| } | ||
|
|
||
| message ProcEffect { | ||
| double proc_chance = 1; // e.g. 0.20 = 20% | ||
| double ppm = 3; | ||
| int32 rppm_scale = 4; | ||
|
||
| // The key represents a Class enum key | ||
| map<int32, double> spec_modifiers = 5; | ||
|
||
| int32 icd = 2; // internal cooldown in seconds | ||
| } | ||
|
|
||
| message OnUseEffect { | ||
| int32 cooldown = 1; // seconds between uses | ||
|
|
||
| int32 category_id = 11; | ||
|
|
||
| int32 category_cooldown = 8; | ||
| } | ||
|
|
||
| message SpellEffect { | ||
| int32 id = 1; | ||
|
|
||
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.
I don't think the
typefield is actually used anywhere, can it be deleted?