Ego Ammo Creation

All new ideas for the upcoming releases of ToME 4.x.x should be discussed here

Moderator: Moderator

Post Reply
Message
Author
Zaive
Archmage
Posts: 313
Joined: Mon May 24, 2010 1:33 pm

Ego Ammo Creation

#1 Post by Zaive »

With the addition of ammo egos in Beta 8, could ammo creation have a higher chance of giving ammos with an ego at higher skill levels?
It would make the skill less of a 1 point wonder, maybe.

Also, would it be possible to add a low ammo warning?
Burb Lulls wrote:"FLURRYFLURRYFLURRYFLURRYFLURRYFLURRY"

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: Ego Ammo Creation

#2 Post by yufra »

Here is a patch against b8 for a low ammo warning. Any suggestions on what the warning level should be? I set it to 10 for now.

Code: Select all

--- modules/tome/class/interface/Combat.lua.old	2010-08-01 08:51:07.000000000 -0700
+++ modules/tome/class/interface/Combat.lua	2010-08-01 08:51:28.000000000 -0700
@@ -242,6 +242,11 @@
 	if sound then game:playSoundNear(ret.firsttarget or self, sound)
 	elseif sound_miss then game:playSoundNear(ret.firsttarget or self, sound_miss) end
 
+	-- Check the remaining amount of ammo
+	if ammo:getNumber() < 10 then
+		game.logPlayer(self, "You only have %d %s left!", ammo:getNumber(), ammo.name)
+	end
+	
 	return ret.hitted
 end
<DarkGod> lets say it's intended

Taxorgian
Archmage
Posts: 300
Joined: Mon May 17, 2010 11:56 am

Re: Ego Ammo Creation

#3 Post by Taxorgian »

I would say 50 arrows. Before the advent of ego arrows I'd have said 99. [However, alert at 50 and 40 and 25 before giving repeated messages.]

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Ego Ammo Creation

#4 Post by darkgod »

done
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: Ego Ammo Creation

#5 Post by yufra »

Hmmm, well currently you get repeating messages for anything under 10. I guess you could do:

Code: Select all

+   local qty = ammo:getNumber()
+   if qty == 50 or qty == 40 or qty <= 25 then
However, if you use multiple shots you risk skipping over the 50 and 40 marks. You would have to add a stored variable to the player to do a better check... not sure what DG wants to do in that case.
<DarkGod> lets say it's intended

Zaive
Archmage
Posts: 313
Joined: Mon May 24, 2010 1:33 pm

Re: Ego Ammo Creation

#6 Post by Zaive »

Done....? Does that just mean the ammo warning or is the ego ammo create there too? :?
Burb Lulls wrote:"FLURRYFLURRYFLURRYFLURRYFLURRYFLURRY"

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Ego Ammo Creation

#7 Post by darkgod »

Both :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply