From f9f239d4ccd0e9b5e7b771d4f76a619d0ebeaf99 Mon Sep 17 00:00:00 2001 From: silvernexus Date: Thu, 21 Jan 2021 21:17:07 +0000 Subject: [PATCH] Add rings that can cast spells to the game. These function like low-power rods, since they regernerate spell points much slower and can cast fewer times before running out. The list of spells is a lot more geared toward utility and infrequently-cast spells, such as summon and dark vision for that reason. Currently set to be pretty rare. If it turns out these should really be more common than rods, it can be done. git-svn-id: svn+ssh://svn.code.sf.net/p/crossfire/code/arch/trunk@21843 282e977c-c81d-0410-88c4-b93c2d0d6712 --- ChangeLog | 7 +++ spell/Wand/spell_ring.arc | 18 ++++++++ spell/Wand/spell_ring.trs | 89 +++++++++++++++++++++++++++++++++++++++ treasures.trs | 22 +++++++++- 4 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 spell/Wand/spell_ring.arc create mode 100644 spell/Wand/spell_ring.trs diff --git a/ChangeLog b/ChangeLog index c143c7100..bd81635ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Add rings that contain spells. +Functionally like low-power rods, but groups with rings client-side. +spell/Wand/spell_ring.arc +spell/Wand/spell_ring.trs +treasures.trs +Daniel Hawkins 2021-01-21 + Add archetypes for building instructions, found in enough shops to warrant it. readable/guide/buildings_instructions.arc Nicolas Weeger 2021-01-19 diff --git a/spell/Wand/spell_ring.arc b/spell/Wand/spell_ring.arc new file mode 100644 index 000000000..8370e9a5d --- /dev/null +++ b/spell/Wand/spell_ring.arc @@ -0,0 +1,18 @@ +Object ring_spell +name ring +name_pl rings +nrof 1 +face ring.110 +identified_face ring.117 +speed 0.02 +type 3 +value 5000 +hp 1 +maxhp 1 +weight 20 +material 2 +client_type 391 +body_finger -1 +randomitems ring_spell +skill use magic item +end diff --git a/spell/Wand/spell_ring.trs b/spell/Wand/spell_ring.trs new file mode 100644 index 000000000..89d449ee2 --- /dev/null +++ b/spell/Wand/spell_ring.trs @@ -0,0 +1,89 @@ +treasureone ring_spell + arch spell_small_fireball + nrof 40 + chance 8 + more + arch spell_small_snowstorm + nrof 40 + chance 8 + more + arch spell_poison_cloud + nrof 30 + chance 4 + more + arch spell_fear + nrof 25 + chance 8 + more + arch spell_slow + nrof 30 + chance 6 + more + arch spell_wonder + nrof 20 + chance 4 + more + arch spell_dimension_door + nrof 8 + chance 5 + more + arch spell_magic_mapping + nrof 20 + chance 5 + more + arch spell_create_earth_wall + nrof 12 + chance 4 + more + arch spell_counterwall + nrof 30 + chance 5 + more + arch spell_probe + nrof 40 + chance 5 + more + arch spell_detect_magic + nrof 50 + chance 5 + more + arch spell_show_invisible + nrof 8 + chance 4 + more + arch spell_minor_healing + nrof 40 + chance 3 + more + arch spell_perceive_self + nrof 20 + chance 5 + more + arch spell_xray + nrof 3 + chance 3 + more + arch spell_searing_weapon + nrof 3 + chance 7 + more + arch spell_dark_vision + nrof 4 + chance 9 + more + arch spell_summon_water_elemental + nrof 6 + chance 4 + more + arch spell_summon_air_elemental + nrof 6 + chance 4 + more + arch spell_summon_fire_elemental + nrof 6 + chance 4 + more + arch spell_summon_earth_elemental + nrof 6 + chance 4 +end diff --git a/treasures.trs b/treasures.trs index daa053770..0721af0b1 100644 --- a/treasures.trs +++ b/treasures.trs @@ -935,6 +935,9 @@ treasureone special_uncommon more arch ring_nodrain chance 5 + more + arch ring_spell + chance 1 end treasureone containers arch sack @@ -1392,6 +1395,9 @@ treasureone random_magical chance 5 nrof 5 more + arch ring_spell + chance 1 + more list special_uncommon magic 9 chance 5 @@ -1533,6 +1539,9 @@ treasureone random_wands more arch rod_heavy chance 1 + more + arch ring_spell + chance 1 end # for shop treasureone random_books @@ -1720,8 +1729,11 @@ treasureone uncommon_items arch file chance 3 more + arch ring_spell + chance 1 + more list NONE - chance 24 + chance 23 end treasure poor_old arch bow @@ -1974,6 +1986,10 @@ treasure rich_old no arch rod_heavy chance 1 + no + arch ring_spell + chance 1 + end end more list random_books @@ -1994,6 +2010,10 @@ treasure rod no arch rod_heavy chance 1 + no + arch ring_spell + chance 1 + end end end treasure ring