Skip to content

Instantly share code, notes, and snippets.

@bensonchow123
bensonchow123 / carousel.html
Created June 25, 2024 16:26
the html code with boostrap 5.3.3
@bensonchow123
bensonchow123 / the_commands.py
Created January 29, 2025 16:30
Help me with this
@app_commands.command(name="calculate_portable_campfire", description="When to place campfire before you die.")
async def calculate_portable_campfire(self, interaction: Interaction, cold_res: float, num_campfires_to_use: int):
base_per_cold_tick_rate = 100 # Base ticks per Cold increase (without resistance)
campfire_cooldown_ticks = 6000 # 5 minutes = 6000 ticks
cold_threshold = 100 # Death at 100 Cold
campfire_cold_reduction = 50 # Each campfire reduces Cold by 50`
per_cold_tick_rate_with_resistance = base_per_cold_tick_rate + cold_res
per_cold_tick_rate_in_tunnels = per_cold_tick_rate_with_resistance * 0.8