forked from andrecronje/rarity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spells-wizard-conjuration-0.sol
59 lines (56 loc) · 1.53 KB
/
spells-wizard-conjuration-0.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
contract codex {
string constant public index = "Spells";
string constant public class = "Wizard";
string constant public school = "Conjuration";
uint constant public level = 0;
function spell_by_id(uint _id) external pure returns(
uint id,
string memory name,
bool verbal,
bool somatic,
bool focus,
uint xp_cost,
uint time,
uint range,
uint duration,
uint saving_throw_type,
uint saving_throw_effect,
bool spell_resistance,
string memory description
) {
if (_id == 2) {
return acid_splash();
}
}
function acid_splash() public pure returns (
uint id,
string memory name,
bool verbal,
bool somatic,
bool focus,
uint xp_cost,
uint time,
uint range,
uint duration,
uint saving_throw_type,
uint saving_throw_effect,
bool spell_resistance,
string memory description
) {
id = 2;
name = "Acid Splash";
verbal = true;
somatic = true;
focus = false;
xp_cost = 0;
time = 1;
range = 2;
duration = 0;
saving_throw_type = 0;
saving_throw_effect = 0;
spell_resistance = false;
description = "You fire a small orb of acid at the target. You must succeed on a ranged touch attack to hit your target. The orb deals 1d3 points of acid damage.";
}
}