Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, DotBot, Yahoo!, Google

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Unused variable: clan->score
Forum Rules | Mark all | Recent Posts

Unused variable: clan->score
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jul 29, 2006, 4:29 pm   Last edited Jul 29, 2006, 4:33 pm by Samson
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

The clan->score variable is declared, loaded, saved, and displayed on clan data sheets, but nowhere in the code is it ever incremented or otherwise calculated. Does anyone have any off chance idea of what this was for? If not then I'll be removing it from the code. It serves no purpose as is.

The same is apparently also true of clan->favour but I suppose that could at least be useful based on deities assigned to clans. Which could explain why clans also have a deity field which is next to worthless.

clan->strikes is also completely unused, and no apparent purpose behind it can be seen. May end up removing that too.
       
Post is unread #2 Jul 29, 2006, 5:34 pm
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

My best guess would be that it was something the original SmaugDevs threw in there so that imms could set a clan 'counter' for strikes against the clan (incidents that bothered the imms) and score (brownie points in the favor of the clan) and, as you said already overall clan favor in conjunction with the clan's deity assignment. *shrug*
       
Pages:<< prev 1 next >>