From ec9c126aeeff458ce654f650fa10b3a02cfbba24 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 23 Feb 2015 09:11:55 +0100 Subject: Reformat spell_type ctor --- src/spell_type.cc | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) (limited to 'src/spell_type.cc') diff --git a/src/spell_type.cc b/src/spell_type.cc index f6598bac..b8c01d31 100644 --- a/src/spell_type.cc +++ b/src/spell_type.cc @@ -54,29 +54,30 @@ struct spell_type public: - spell_type(cptr _name): - name(_name), - skill_level(0), - m_description(), - effect_func(nullptr), - info_func(nullptr), - lasting_func(nullptr), - depend_func(nullptr), - minimum_pval(0), - casting_type(USE_SPELL_POINTS), - casting_stat(0), - castable_while_blind(FALSE), - castable_while_confused(FALSE), - device_charges({ 0, 0, 0 }), - m_device_allocation(), - random_type(-1), - failure_rate(0), - inertia_difficulty(-1), - inertia_delay(-1), - mana_range({ -1, -1 }), - activation_timeout({ 0, 0, 0 }), - school_idxs_count(0), - school_idxs{ -1, -1, -1 } { + spell_type(cptr _name) + : name(_name) + , skill_level(0) + , m_description() + , effect_func(nullptr) + , info_func(nullptr) + , lasting_func(nullptr) + , depend_func(nullptr) + , minimum_pval(0) + , casting_type(USE_SPELL_POINTS) + , casting_stat(0) + , castable_while_blind(FALSE) + , castable_while_confused(FALSE) + , device_charges({ 0, 0, 0 }) + , m_device_allocation() + , random_type(-1) + , failure_rate(0) + , inertia_difficulty(-1) + , inertia_delay(-1) + , mana_range({ -1, -1 }) + , activation_timeout({ 0, 0, 0 }) + , school_idxs_count(0) + , school_idxs{ -1, -1, -1 } + { } }; -- cgit v1.2.3